Ok I want to use gradle to run my tests in an emulator.
gradle has two targets that allow me to run tests:
- connectedCheck
- deviceCheck
If I understood correctly, we should use deviceCheck to test stuff in an emulator, but when I run it runs no tests.
connectedCheck also doesn't work because it can't find a device (emulators don't appear in the Android Studio the way my cell phone do).
What I would like is (ideally):
- run my gradle script
- it boots up an emulator
- it runs tests on that emulator
- it turns down the emulator
I would also like to have a target that won't boot or turn down the emulator, but it will use one if one is up.
It's possible to do any of these things? I can't find documentation anywhere on how to configure gradle android plugin.