There are Espresso tests Android and CI Jenkins, which builds the project. How to implement a test run after building the project?
1 answer
You need to install qemu-kvm and add a Jenkins user to this group. Build an Android Emulator Plugin . In the Jenkins repository it is too old. And JUnit Plugin .
In your Freestyle job after rebooting Jenkins, the Run an Android emulator during build checkbox will appear in the Build Environment . In Execute Shell call the commands to run the tests.
A selection of manuals, with examples of how to do it:
- A good video example , but here everything is already pre-installed in Jenkins.
- An example with a slightly different configuration , but the configuration steps are the same.
- Example for Headless Emulator and Espresso
- thanks for the answer. Need to check. - nuqss
|
pipelinesorfreestyle job? - FChfreestyle job- nuqss