How to stop android emulator after executing the unit tests using pom.xml in maven?
Can you specify a method to stop android emulator after running the unit tests using pom.xml
Check out the maven-failsafe-plugin and the integration test-related phases of the Maven lifecycle. When you configure your POM:
- Bind the Maven goals to start the Android emulator to the pre-integration-test phase.
- Run tests with the Failsafe plugin integration-test goal, bound to the integration-test phase.
- Bind goals to shut down the emulator to the post-integration-test phase.
- Verify test output with the Failsafe plugin verify goal, bound to the verify phase.