How to make Android Studio 1.1 call generateDebugTestSources instead of assembleDebugTest during “Make” instruction?

前端 未结 1 1974
我在风中等你
我在风中等你 2021-01-06 20:24

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

相关标签:
1条回答
  • 2021-01-06 21:09

    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.

    0 讨论(0)
提交回复
热议问题