java - Why android studio 1.2.1.1 automatically only support ONE test file? -


i wanted add 2 different test files in project. 1 instrumental tests , other 1 junit tests.

i have added src/androidtest/java file project. worked perfectly, java file changed color green, when added src/test/java didn't work. file appears in gold(?) , not reconised automatically ide.

i thought problem of gradle configuration , tried reconfigure build.gradle , didn't work.

so started clean branch , added, firstly, file /src/test/java see going happend. worked. green. couldn't add /src/androidtest/java, because not reconized. why happening? can have both files @ same time?

first:

second:

tap on "build variants" view, docked default on left side of android studio window.

you see, towards top, drop-down entitled "test artifact". choices there "android instrumentation tests" , "unit tests". controls whether androidtest/ or test/ being actively managed ide @ point in time. reminiscent of how android studio handles other sourcesets — whatever have chosen in build variants have "real" directories, while other build variants have unrecognized directories.

my understanding there hope can improved in future, though guess require changes intellij idea, android studio inherits.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -