I have an *MyApp.ear* containing production code and a *test.war* containing end-to-end test code deployed in the *same JBoss server* on the *same host machine*.
MyApp.ear accepts MQ messages and returns the output. test.war sends the MQ messages and asserts the output. Both production and test application is built using maven. I am using jacoco 0.8.5 for code coverage. An end-to-end test is invoked as below in the command line: $mvn clean verify -DJBOSS_HOME=<path_to_jboss_dir> -f=integration-test/pom.xml jacoco:prepare-agent jacoco:report sonar:sonar -Dsonar.skip=false -Dit.test=com.mypackage.name.EndToEndTest Test execution flow is as below: 1. A test class sends the MQ messages to the MQs that are configured in the host. 2. Production class (MyApp.ear) listens to the queue and accepts the MQ messages for processing. 3. Processed output is asserted by the test class using Junit. Questions: - Is it possible to obtain the code coverage of my production classes when i run the End to end test ? - If yes, would appreciate if you could point out few key things to be done. Thanks Abhay -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/e759631d-5e6d-4631-9bff-f88e3a356838n%40googlegroups.com.
