<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Clover Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/clover/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/clover/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:53:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Top 5 Code Coverage Tools &#124; Best Test Coverage Tools</title>
		<link>https://www.scmgalaxy.com/tutorials/top-5-code-coverage-tool/</link>
					<comments>https://www.scmgalaxy.com/tutorials/top-5-code-coverage-tool/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 02 Mar 2017 03:48:10 +0000</pubDate>
				<category><![CDATA[Test Coverage Tools]]></category>
		<category><![CDATA[Best]]></category>
		<category><![CDATA[Best Code Coverage Tools]]></category>
		<category><![CDATA[Clover]]></category>
		<category><![CDATA[Cobertura]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Code Coverage Tools]]></category>
		<category><![CDATA[Coverage]]></category>
		<category><![CDATA[JaCoCo]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[NCover]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Testwell CTC++]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Top]]></category>
		<category><![CDATA[Top Code Coverage Tools]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2017/03/02/top-5-code-coverage-tool/</guid>

					<description><![CDATA[<p>Today we will talk about code coverage tools which are used by developers for measuring the quality of the software [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/top-5-code-coverage-tool/">Top 5 Code Coverage Tools | Best Test Coverage Tools</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-3006 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/top-5-code-coverage-tool.png" alt="" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/top-5-code-coverage-tool.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/top-5-code-coverage-tool-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></div>
<div></div>
<div>Today we will talk about <strong>code coverage tools</strong> which are used by developers for measuring the quality of the software testing. There are so many different types of code coverage tools, some are basics and others that are exceptionally thorough.</div>
<div></div>
<div><strong>But before going further on tools let&#8217;s first see what is Code Coverage?</strong></div>
<div></div>
<div>Code Coverage is a methodology, which is performed to measure and describe how much the source code of a program is executed when a specific test suite runs. It gives a percentage score to a program which defines as a high code coverage and low code coverage. If it gets high percentage of code coverage during testings which means it has a minimal chance of containing undiscovered software bugs in the comparison of a program which scored low percentage of code coverage while testing. In simple words , code coverage is performed to check whether your tests are really analyzing your code or not. With code coverage, one can tell the amount of your code is being tested by running the test.</div>
<div></div>
<div><strong>Where to use ?</strong></div>
<div>Code coverage tools can be performed on .NET, Java, Visual C/C++ and Visual Basic applications.</div>
<div></div>
<div><strong>Benefits of Code Coverage</strong></div>
<div></div>
<div><strong>Dead Code Identification &#8211;</strong> The first and the major benefits of code coverage is that after running this test you will get the outputs that shows those functions which are not called, after detecting that you can identify whether the code is untouched as no required use case exists or code is dead code (i.e. not required).</div>
<div></div>
<div><strong>Missing test Identification &#8211;</strong> It can be beneficial in identifying the extra tests (exceptional cases), which are missed out earlier after running the test suites analysis report.</div>
<div></div>
<div><strong>Quality Assurance &#8211;</strong> Quality of a product or application is one of the major concern in software world and this can be done by measuring the report after running the code coverage. Higher the amount of coverage better will be the quality of product or application and lesser is the chance to have defects.</div>
<div></div>
<div><strong>Now the next question here is which code coverage tools to choose ?</strong></div>
<div></div>
<div>This is the real challenge to choose which code coverage tools to use for application testing. I also thought about it and after few hours research on the internet and with the help of google trend I shortlisted my results and pick top 5 code coverage tools.</div>
<div></div>
<div><strong>1. Cobertura &#8211;<br />
</strong><img decoding="async" class="alignnone wp-image-531 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/cobertura.jpeg" alt="code-coverage-tool-cobertura" width="400" height="200" /><br />
<strong>Cobertura</strong> is one of the most used and best code coverage tools. This is a free Java tool that calculates the percentage of code accessed by tests. It can be used to identify which parts of your Java program are lacking test coverage. It is based on jcoverage. It is easy to use and can measure coverage without having the source code. It&#8217;s represents reports in HTML or XML format, It has capacity to test lines and branches of class and method.</div>
<div></div>
<div><strong>2. JaCoCo &#8211;</strong><br />
<img decoding="async" class="alignnone wp-image-532 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/jacoco.jpg" alt="code-coverage-tool-jacoco" width="400" height="200" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/jacoco.jpg 400w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/jacoco-300x150.jpg 300w" sizes="(max-width: 400px) 100vw, 400px" /><br />
<strong>JaCoCo</strong> is also an open source free code coverage tools for Java, which has been made by the EclEmma group in view of the lessons gained from utilizing and joining existing libraries for a long time. JaCoCo offers instructions, line and branch coverage. It can instrument off-line and on-the-fly and It fully supports Java 7 and Java 8. It also has capacity to test lines and branches of class and method. It also provide very nice and easy to navigate HTML or XML report.</div>
<div></div>
<div><strong>3. Clover &#8211;<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-533 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/clover.jpg" alt="code-coverage-tool-clover" width="400" height="200" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/clover.jpg 400w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/clover-300x150.jpg 300w" sizes="auto, (max-width: 400px) 100vw, 400px" /><br />
</strong> <strong>Clover</strong> is also a Java Code Coverage tools bought and further developed by Atlassian. It is also an open source tool. Clover provide very helpful configurable HTML reports demonstrating code scope as well as high level risks and so on, per-test code coverage and test enhancement, dispersed per-test coverage and many instrument integration; it is by and large effectively created and supported.</div>
<div></div>
<div><strong>4. NCover-</strong><br />
<img loading="lazy" decoding="async" class="alignnone wp-image-534 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/ncover.jpg" alt="code-coverage-tool-ncover" width="400" height="200" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/ncover.jpg 400w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/ncover-300x150.jpg 300w" sizes="auto, (max-width: 400px) 100vw, 400px" /><br />
<strong>NCover</strong> is a code coverage tool for .Net programs and applications. It supports statement coverage and branch coverage. It is also very easy to use and fast tool which is available on open source and as well as on commercial license. This tool can perform manual as well as automated code coverage tests and it provides nice and attractive multiple testing environments.</div>
<div></div>
<div><strong>5. Testwell CTC++ &#8211;</strong><br />
<img loading="lazy" decoding="async" class="alignnone wp-image-535 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/testwellctc.jpg" alt="code-coverage-tool-testwell-ctc++ " width="400" height="200" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/testwellctc.jpg 400w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/03/testwellctc-300x150.jpg 300w" sizes="auto, (max-width: 400px) 100vw, 400px" /><br />
<strong>Testwell CTC++</strong> is a code coverage tool for  C and C++ but it also can be used for Java and C#. The development of this tool is belongs to Testwell which lately acquired by Verifysoft Technology GmbH for C and C++. This tool can check Statement Coverage, Function Coverage, Decision Coverage, Multi Condition Coverage, Modified Condition/Decision Coverage (MC/DC), Condition Coverage. This is also in the category of user-friendly and fast tools. It finds missing test cases smoothly. It provide reports on XML format.</div>
<div></div>
<div>So, This is my list of top code coverage tools, I hope this list will help you in your testings. But, if you think this list should contain any other tools instead these than feel free to share with us in comment box below.</div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/top-5-code-coverage-tool/">Top 5 Code Coverage Tools | Best Test Coverage Tools</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/top-5-code-coverage-tool/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Clover and Maven working with Distributed Applications</title>
		<link>https://www.scmgalaxy.com/tutorials/clover-and-maven-working-with-distributed-applications/</link>
					<comments>https://www.scmgalaxy.com/tutorials/clover-and-maven-working-with-distributed-applications/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 07 Jul 2010 09:01:57 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Clover]]></category>
		<category><![CDATA[Clover and Maven working with Distributed Applications]]></category>
		<category><![CDATA[Code Coverage]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[Deploy]]></category>
		<category><![CDATA[Distributed Applications]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How Clover and Maven works with Distributed Applications]]></category>
		<category><![CDATA[Instructions]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven Clover plugin]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Run]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/07/07/clover-and-maven-working-with-distributed-applications/</guid>

					<description><![CDATA[<p>1.       Configure maven clover plugin. 2.       Build the all components with clover enabled. 3.       Deploy the clover enabled build to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/clover-and-maven-working-with-distributed-applications/">Clover and Maven working with Distributed Applications</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4444" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/07/clover-and-maven-working-wi.png" alt="clover-and-maven-working-with-distributed-applications" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/07/clover-and-maven-working-wi.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/07/clover-and-maven-working-wi-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri; font-size: small;">1.</span><span style="font: 7pt;">       </span></span></span><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;">Configure maven clover plugin.</span></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri; font-size: small;">2.</span><span style="font: 7pt;">       </span></span></span><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;">Build the all components with clover enabled.</span></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri; font-size: small;">3.</span><span style="font: 7pt;">       </span></span></span><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;">Deploy the clover enabled build to test server.</span></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri; font-size: small;">4.</span><span style="font: 7pt;">       </span></span></span><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;">Run the tests.</span></span></span></span></p>
<p class="MsoListParagraphCxSpLast" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri; font-size: small;">5.</span><span style="font: 7pt;">       </span></span></span><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;">Create &amp; Review the Code Coverage Report.</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="color: #000000;"><span style="font-size: small;"><span style="font-family: Calibri;">Configure Maven Clover Plugin</span></span></span></span></strong></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt;"><span style="font-family: Calibri; color: #000000; font-size: small;">Configure the maven plugin in pom.xml .If you are having multi module projects; you can configure the plugin in parent-pom instead of modifying each module’s pom xml.</span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="color: #000000;"><span style="font-size: small;"><span style="font-family: Calibri;"><br />
Build all components with clover enabled.</span></span></span></span></span></strong></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="color: #000000;"><span style="font-size: small;"><span style="font-family: Calibri;">Run the following command.</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt 0.75in;"><strong style="mso-bidi-font-weight: normal;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri; color: #000000; font-size: small;"> </span></span></strong></p>
<p class="MsoNoSpacing" style="text-indent: 0.25in; margin: 0in 0in 0pt 0.75in;"><span style="font-size: small;"><span style="font-family: Calibri;"><strong style="mso-bidi-font-weight: normal;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="color: #000000;"><span style="mso-spacerun: yes;">  </span>“mvn <span class="apple-style-span"><span style="color: black;">-U clover2:setup package clover2:aggregate</span></span></span></span></strong><span class="apple-style-span"><span style="color: black; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">”</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt 0.75in;"><strong style="mso-bidi-font-weight: normal;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri; color: #000000; font-size: small;"> </span></span></strong></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;"><span style="mso-spacerun: yes;">   </span><span style="mso-tab-count: 1;">             </span>If you got something like this</span></span></span></span></strong></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt 0.75in;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">[INFO] Loaded from: C:\Documents and Settings\Administrator\.m2\repository\com\cenqua\clover\clover\2.6.3\clover-2.6.3.jar</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt 0.75in;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">[INFO] Clover: Commercial License registered to ABC Corporation.</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt 0.75in;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">[INFO] Creating new database at &#8216;C:\p4_depot\trunk\4A\target\clover\clover.db&#8217;.</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt 0.75in;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">[INFO] Processing files at 1.5 source level.</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt 0.75in;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">[INFO] Clover all over. Instrumented 5 files (1 package).</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt 0.75in;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">[INFO] Elapsed time = 0.532 secs. (9.398 files/sec, 812.03 srclines/sec)</span></span></span></span></p>
<p class="MsoNoSpacing" style="text-indent: 0.5in; margin: 0in 0in 0pt;"><strong style="mso-bidi-font-weight: normal;"><em><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">Congratulation, you get clover work with your source!!</span></span></span></span></em></strong></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-bidi-font-style: italic;"><span style="font-family: Calibri; color: #000000; font-size: small;"> </span></span></strong></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-bidi-font-style: italic;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">Deploy the clover enabled build to test server.</span></span></span></span></span></strong></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;">Deploy the Clover enabled build to the server. The same process as normal </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;">Copy the Clover registry file to the appropriate directory on each of the test servers </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;"> </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;">The registry file is the DB file create during compile, defined by <em>initstring </em>parametersclover‐setup task, this needs to occur after the Clover build is complete, and before you run your tests </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;"> </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;">Background: the Clover initstring </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;"> </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;">FileName: xxx.db </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;">At build time, Clover constructs a registry of your source code, and writes it to a file at the location specified in the Clover initstring. When Clover‐ instrumented code is executed (e.g. by running a suite of unit tests), Clover looks in the same location for this registry file to initialise itself. Clover then records coverage data and writes coverage recording files next to the registry file during execution</span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"><span style="font-size: small;"><span style="font-family: Calibri;"><strong><span style="color: black; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Notes: gives the folder contains the registry file full control permissions </span></strong></span></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"><span style="color: black; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri; font-size: small;"> </span></span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">Recommended Permissions </span></em></p>
<p class="Default" style="text-align: justify; margin: 0in 0in 0pt;"><span style="color: #000000;">Clover requires access to the Java system properties for runtime configurations, as well as read write access to areas of the file system to read the Clover coverage database and to write coverage information. Clover also uses a shutdown hook to ensure that it flushes any as yet unflushed coverage information to disk when Java exits. To support these requirements, the following security </span></p>
<p class="Default" style="text-align: justify; margin: 0in 0in 0pt;"><span style="color: #000000;">permissions are recommended: </span></p>
<p class="Default" style="text-align: justify; margin: 0in 0in 0pt 1in;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;"> </span></em></p>
<p class="Default" style="text-align: justify; margin: 0in 0in 0pt 1in;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">grant codeBase &#8220;file:/path/to/clover.jar&#8221; { </span></em></p>
<p class="Default" style="text-align: justify; margin: 0in 0in 0pt 1in;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">permission java.util.PropertyPermission &#8220;*&#8221;, &#8220;read&#8221;; </span></em></p>
<p class="Default" style="text-align: justify; margin: 0in 0in 0pt 1in;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">permission java.io.FilePermission &#8220;&lt;&gt;&#8221;, &#8220;read, write&#8221;; </span></em></p>
<p class="Default" style="text-align: justify; margin: 0in 0in 0pt 1in;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">permission java.lang.RuntimePermission &#8220;shutdownHooks&#8221;; </span></em></p>
<p class="Default" style="text-align: justify; margin: 0in 0in 0pt 1in;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">} </span></em></p>
<p class="Default" style="margin: 0in 0in 0pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;"> </span></em></p>
<p class="Default" style="margin: 0in 0in 0pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">Grant Permissions to clover.jar </span></em></p>
<p class="Default" style="text-indent: 0.5in; margin: 0in 0in 0pt;"><span style="color: #000000;">Edit the java.policy file of the java runtime on the test server </span></p>
<p class="Default" style="text-indent: 0.5in; margin: 0in 0in 0pt 0.5in;"><span style="color: #000000;">%JAVA_HOME%/jre/lib/security</span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;"> </span></p>
<p class="Default" style="margin: 0in 0in 0pt 0.5in;"><span style="color: #000000;">Copy clover.jar and license file to the java runtime class path of the test servers </span></p>
<p class="Default" style="text-indent: 0.5in; margin: 0in 0in 0pt;"><span style="color: #000000;">%JAVA_HOME%/jre/lib/ext </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;"> </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;"> </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="color: #000000;">Run the test suite</span></span></strong></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;">Run the test suite as normal. Either automation test case or manual test case.</span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;"> </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="color: #000000;">Create Code Coverage Report</span></span></strong></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;">Copy the coverage recording files to build machine. </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;"> </span></p>
<p class="Default" style="text-align: justify; margin: 0in 0in 0pt;"><span style="color: #000000;">Once test execution is complete, you will need to copy the coverage recording files from each remote machine to the initstring path on the build machine in order to generate coverage reports. </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;"> </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;">Background: CoverageRecording Files </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;"> </span></p>
<p class="Default" style="text-align: justify; margin: 0in 0in 0pt;"><span style="color: #000000;">Filename:xxx.dbHHHHHHH_TTTTTTTTTT or clover.dbHHHHHHH_TTTTTTTTTT.1 (where HHHHHHH and TTTTTTTTTT are both hex strings) </span></p>
<p class="Default" style="text-align: justify; margin: 0in 0in 0pt;"><span style="color: #000000;">CoverageRecording files contain actual coverage data. When running instrumented code, Clover creates one or more Coverage Recorders. Each Coverage Recorder will write one CoverageRecording file. The number of Coverage Recorders created at runtime depends the nature of the application you are Clovering. In general a new Coverage Recorder will be created for each new ClassLoader instance that loads a Clovered class file. The first hex number in the filename (HHHHHHH) is a unique number based on the recording context. The second hex number (TTTTTTTTTT) is the timestamp (ms since epoch) of the creation of the Clover Recorder. CoverageRecording files are named this way to try to minimise the chance of a name clash. While it is theoretically possible that a name clash could occur, in practice the chances are very small. </span></p>
<p class="Default" style="text-align: justify; margin: 0in 0in 0pt;"><span style="color: #000000;">CoverageRecording files are <strong>written </strong>during the execution of Clover‐instrumented code. CoverageRecording files are <strong>read </strong>during report generation or coverage browsing. </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;"> </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><span style="color: #000000;">Run the generating report goal to create the report. </span></p>
<p class="Default" style="margin: 0in 0in 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="color: #000000;"><span style="mso-tab-count: 2;">                                </span>“mvn clover2:clover”</span></strong></p>
<p class="Default" style="margin: 0in 0in 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="mso-tab-count: 1;"><span style="color: #000000;">                </span></span></strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/clover-and-maven-working-with-distributed-applications/">Clover and Maven working with Distributed Applications</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/clover-and-maven-working-with-distributed-applications/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
