Android Studio / Gradle test folder naming convention -


i've seen lot of tutorials , helper projects doing testing on android studio / gradle project. i'm curious naming convention of the test folder. i've seen 2 similar namings : test , androidtest. there real difference? ide / gradle framework treating these differently?

  • app
    • src
      • androidtest
        • java
      • main
        • java
        • res

versus

  • app
    • src
      • test
        • java
      • main
        • java
        • res

edit:

@jonalmeida if read documentation correctly, build.gradle file dependencies need match sourceset, right?

dependencies {     // dependency injection     compile 'com.squareup.dagger:dagger:1.2.1'     provided 'com.squareup.dagger:dagger-compiler:1.2.1'      // networking     compile 'com.squareup.retrofit:retrofit:1.6.1'      // testing     androidtestcompile 'org.easytesting:fest:1.0.16'     androidtestcompile 'junit:junit:4.+'     androidtestcompile 'org.robolectric:robolectric:2.3'     testcompile 'com.squareup:fest-android:1.0.8' // <---- guy won't work  } 

since android studio 1.1 should put unit tests in /src/test , android instrumentation tests in /src/androidtest

see: http://tools.android.com/tech-docs/unit-testing-support#toc-setting-up-android-studio

for android studio 2.0 , beyond see: https://youtu.be/kl3mcqv2m2s?t=114


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -