Skip to content Skip to sidebar Skip to footer

How To Make Android Studio 1.1 Call Generatedebugtestsources Instead Of Assembledebugtest During "make" Instruction?

I have a project with 1,000+ tests running fine with Robolectric. After switching to Android Studio 1.1 when I go to 'Run' -> 'All Tests' during the 'Make' instruction Android S

Solution 1:

If someone is interested in the solution according to the new Unit Testing guide:

http://tools.android.com/tech-docs/unit-testing-support

you need to change the test artifacts to "Unit Testing" as describe on step 5. That way when you run all the tests AS will call the new assembleDebugUnitTest task instead of assembleDebugTest.

Post a Comment for "How To Make Android Studio 1.1 Call Generatedebugtestsources Instead Of Assembledebugtest During "make" Instruction?"