To maintain the test quality over the lifecycle of a project
There are many approaches to code coverage measurement. Broadly there are three approaches, which may be used in combination:
Source code instrumentation
This approach adds instrumentation statements to the source code and compiles the code with the normal compile toolchain to produce an instrumented assembly.
Intermediate code instrumentation
Here the compiled class files are instrumented by adding new byte codes, and a new instrumented class is generated.
Runtime information collection
This approach collects information from the runtime environment as the code executes to determine coverage information
Installation and set-up
Add clover-maven-plugin to your parent pom of the project.
Add the below settings in m2/settings.xml
org.openclover
For example I have added like below image.
Add below in pom.xml
org.apache.maven.plugins
maven-compiler-plugin
3.7.0
1.8
1.8
org.apache.maven.plugins
maven-surefire-plugin
2.21.0
org.openclover
clover-maven-plugin
4.2.1
main
verify
instrument
check
pre-site
instrument
org.openclover
clover-maven-plugin
4.2.1
true
true
true
Run below command:
mvn clean install clover2:clover
Go to pringlesxtra-service-impl/target/site/clover/intex.html file and you can see the coverage report.
Hey there, We are Blossom Themes! We are trying to provide you the new way to look and use the blogger templates. Our designers are working hard and pushing the boundaries of possibilities to widen the horizon of the regular templates and provide high quality blogger templates to all hardworking bloggers!
Welcome to Magazinify website, elit egestas rutrum vehicula, neque dolor fringilla lacus, ut rhoncus turpis augue vitae libero. Donec pulvinar libero eget blandit consequat. Vestibulum adipiscing rutrum nulla, vitae interdum urna posuere in.
A Unique Magazine Blogger Template created with HTML5, jQuery and CSS3. We have added all the features which is essential to convert a odd looking blog into professional blog.