How to run all (single and instrumental) tests with one click in Android Studio

I am developing an Android application in Android Studio. I have unit tests and instrumental tests.

I want to run them all to see something is broken.

Now my workflow:

  • go to project presentation
    • go to ${app}/src/androidTest/java/
    • right click this node and select Run 'All Tests'
    • select my device
    • run instrumental tests

then

  • go to project presentation
    • go to ${app}/src/androidTest/java/${package}
    • right click this node and select Run 'Tests in ${package}'
    • run unit tests

What I'm really looking for is a big green button that launches all tests and reports OK / FAILED results for tests with both unit and tools. How can i do this?

+6
source share

All Articles