How to run android CTS test case?

Which build tool is used internally at Google or other tech houses to test and run sanity check against Android applications?

  • As the source directory <root>/src and <root>/tests/<android_test_project> are quite uncommon with the standard maven folder structure, I am wondering which suite of software is used to test and run continuous testing at tech companies such as Google, Facebook or Twitter. Furthermore, the VM is not standard and as such mocking framework are difficult to use and the packaging requires conversion and so forth. Handling the lifecycle of testing and delivery for android based projects can be difficult. Which tools are used in the field?

  • Answer:

    Well, Google of course pushes a JUnit based test framework. In order to run any Android specific tests using this framework, however, you have to be plugged in to a device or emulator. Then there's Robolectric which fills in the stubs for the Android SDK so that you can make Android specific tests and run them in your own computer's VM. This is obviously much faster, but could be error prone.

Karim Varela at Quora Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.