From daf3fb51e6ad2439e09f4279636d9f04ed9131ea Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Fri, 12 Mar 2021 13:13:08 +0100 Subject: [PATCH 1/2] Add package to integration test instructions --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a9c1d8f..2b4b697 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ mvn jacoco:prepare-agent test jacoco:report Then run the application with the JaCoCo agent: (adjust the path to the agent jar) ``` +mvn package -Pproduction cp target/typicalc-1.0-SNAPSHOT.jar /tmp java -javaagent:jacoco.agent.jar=port=36320,destfile=jacoco-it.exec,output=tcpserver /tmp/typicalc-1.0-SNAPSHOT.jar ``` From 7a6e0844e6072a225df0293334e317d3b091a261 Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Fri, 12 Mar 2021 13:31:46 +0100 Subject: [PATCH 2/2] Document test coverage report location --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b4b697..f7e83f7 100644 --- a/README.md +++ b/README.md @@ -71,12 +71,13 @@ mvn integration-test mvn jacoco:dump@pull-test-data -Dapp.host=localhost -Dapp.port=36320 -Dskip.dump=false ``` +JaCoCo execution data of manual tests should be exported to `target/jacoco-manual.exec`. + Finally, a code coverage report can be generated: ``` mvn antrun:run@generate-report -Dskip.int.tests.report=false ``` - -JaCoCo execution data of manual tests should be exported to `target/jacoco-manual.exec`. +The report can be found at `target/coverage-report/html/jacoco-multi/index.html`. ## Deploying using Docker