From 6b99f2669ee2cd57d177f3802b7666449937f97f Mon Sep 17 00:00:00 2001 From: mfarid Date: Sun, 22 Nov 2015 05:47:36 +0530 Subject: [PATCH] Added capability for test coverage report generation and steps to do so. --- CODE_COVERAGE.md | 13 +++++++++++++ pom.xml | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 CODE_COVERAGE.md diff --git a/CODE_COVERAGE.md b/CODE_COVERAGE.md new file mode 100644 index 000000000..589c7ad79 --- /dev/null +++ b/CODE_COVERAGE.md @@ -0,0 +1,13 @@ +# Code Coverage Report generation + +To generate the code coverage report, execute the following command: +> mvn clean verify + +This will generate code coverage report in each of the modules. In order to view the same, open the following file in your browser. +> target/site/jacoco/index.html + +Please note that the above folder is created under each of the modules. For example: +* adapter/target/site/jacoco/index.html +* busniess-delegate/target/site/jacoco/index.html + + diff --git a/pom.xml b/pom.xml index 4419fb98a..2fc34f661 100644 --- a/pom.xml +++ b/pom.xml @@ -130,6 +130,12 @@ ${junit.version} test + + org.mockito + mockito-core + 1.10.19 + test + log4j log4j @@ -242,6 +248,41 @@ + + + org.jacoco + jacoco-maven-plugin + 0.7.5.201505241946 + + + + prepare-agent + + + + report + prepare-package + + report + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.18.1 + + + org.apache.maven.surefire + surefire-junit47 + 2.18.1 + + + + -Xmx1024M ${argLine} + +