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

Answers


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.

Need Your Help

ssh "port 22: no route to host" error in bash script

linux bash ssh sed

I wrote a scipt to execute a couple of ssh remote comands relating to apache storm. When I execute the script it says: