-
Type:
Story
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: 7.0.0 DXP FP24, 7.0.0 DXP FP26, 7.0.X EE, 7.0.4 CE GA5, Master
-
Component/s: Testing > CI environments
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
-
Priority Level:Low
-
Git Pull Request:
For developers local code coverage usage:
For unit test(including portal unit, module unit and portal-impl integration), just add -Djunit.code.coverage=true to your test command.
For module integration(aka Arquillian test), there are 2 ways.
a) If you want to start tomcat manually, start it this way: "./catalina.sh jacoco run", then you can just run tests as you normally do
b) If you want gradle to start the tomcat for you, run the test this way :
gw testIntegration --tests YourTest -Dapp.server.start.executable.arg.line="jacoco run"
Once your finish all your tests, shutdown your application server if it is running to dump the test data, to generate the report, run "ant generate-code-coverage-report" from project root. The report will be dumped at ${project.dir}/jacoco/html-report.
- is a dependency of
-
LPS-74937 We should allow people to generate code coverage report for special classes
-
- Closed
-