Unit testing Android apps is easy, thanks to integrated testing tools. However, the only officially supported way of running the tests is on the Dalvik VM, either on a real device or in an emulator. The practical ramifications of this are a long test run startup time, and the arguably more serious matter of making running tests in a CI environment difficult to say the least. Even if you manage to set up an AVD on your probably headless build agent, you’ll still need to perform more magic to get jUnit XML reports out of the AVD and onto the agent for your CI system to parse them.
Read full article from Android Unit Testing in Android Studio and CI Environments | Futurice blog
No comments:
Post a Comment