I am developing an Android app in Android Studio. I have unit tests and instrumented tests.
I want to run them all to see if I broke something.
Right now my workflow is:
${app}/src/androidTest/java/
Run 'All Tests'
then
${app}/src/androidTest/java/${package}
Run 'Tests in ${package}'
What I am really looking for is a big green button that runs all of the tests and reports back the result of OK/FAILED for both unit and instrumented tests together. How can I do that?
Run all tests in a single classRight click on a test class name in the editor (or a filename in the project explorer) to run all tests in a single class. The default keyboard shortcut for this is Ctrl+Shift+F10 on Linux. I suggest you map it to something easier to remember like Ctrl+Alt+R.
To run all the tests in a solution, choose the Run All icon (or press Ctrl + R, V). To run all the tests in a default group, choose the Run icon and then choose the group on the menu.
You cannot start both tests at the same time...
But you can create two big green buttons.
Go to your project files and right click on ../app/src/androidTest/java
Then right click on ../app/src/test/java
Enjoy! =)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With