<?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>Why Code Coverage Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/why-code-coverage/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/why-code-coverage/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:52:52 +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>What is Code Coverage and Why Code Coverage?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-code-coverage-and-why-code-coverage/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-code-coverage-and-why-code-coverage/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 17 May 2013 12:00:23 +0000</pubDate>
				<category><![CDATA[Code Analysis]]></category>
		<category><![CDATA[Advantages]]></category>
		<category><![CDATA[Benefits of Code Coverage]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Code Coverage]]></category>
		<category><![CDATA[Coverage]]></category>
		<category><![CDATA[Coverage Tools]]></category>
		<category><![CDATA[Quality analysis]]></category>
		<category><![CDATA[Software Quality]]></category>
		<category><![CDATA[Test Coverage]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[What]]></category>
		<category><![CDATA[What is Code Coverage]]></category>
		<category><![CDATA[Why]]></category>
		<category><![CDATA[Why Code Coverage]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2013/05/17/what-is-code-coverage-and-why-code-coverage/</guid>

					<description><![CDATA[<p>What is Code Coverage Code Coverage is an important measurement in Software Quality Engineering. While Software testing ensures correctness of [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-code-coverage-and-why-code-coverage/">What is Code Coverage and Why Code Coverage?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-3760 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2013/05/code-coverage.png" alt="code-coverage" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2013/05/code-coverage.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2013/05/code-coverage-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>What is Code Coverage</strong><br />
Code Coverage is an important measurement in Software Quality Engineering. While Software testing ensures correctness of the applications, a metric is required to track the What is Code Coverage Code Coverage is an important measurement in Software Quality Engineering. While Software testing ensures correctness of the applications, a metric is required to track the completeness and effectiveness of the testing undertaken. Code Coverage helps achieve reliable quality through identifying untested areas of the application.</p>
<p><strong>Why Code Coverage</strong><br />
Software testing is a challenging function. The testers need to ensure complete functional and non-functional correctness of the product. Considering the complex workflows and use cases of modern day applications, the number of unique cases that the software can be used often run into millions, which is not feasible to be covered under testing exercise. The testers thus need to<br />
&#8211; While Planning Tests<br />
o Ensure covering all workflows in terms of decision trees in the code<br />
o Ensure covering all data values – by identifying patterns rather covering millions of values<br />
&#8211; While testing<br />
o Ensuring the testing is completely exercising the whole application with planned and exploratory tests.</p>
<p>At the end of testing, the decision to stop testing and release the product still remains subjective, based on the presence or absence of bugs, inflow of new bugs, success rate of each test cycle, confidence rating of the testers or users, etc. Whereas the definitive metric of quantifying how much of the application was really tested, is missed.</p>
<p>Code Coverage is measured as quantification of application code exercised by the testing activities. Code Coverage can be measured at various levels – in terms of programming language constructs – Packages, Classes, Methods, Branches or in terms of physical artifacts &#8211; Folders, Files and Lines. For Eg. A Line Coverage metric of 67% means the testing exercised 67% of all executable statements of the application. A Code Coverage metric usually is accompanied by Code Coverage Analysis Report – which helps identify the un-tested part of the application code, thereby giving the testers early inputs for complete testing.</p>
<p><strong>Benefits of Code Coverage</strong></p>
<ul>
<li>Objective Indicator of Test Coverage of application code</li>
<li>Pointers to uncovered Packages / Classes / Methods / Branches</li>
<li>Pointers to uncovered Folders / Files / Lines</li>
<li>Drill down to untested part of source code and devise new tests</li>
<li>Early Indicator for Testing Quality and Fixing it by adding new tests.</li>
<li>Remove redundancy in testing</li>
<li>Increased Confidence for Releases</li>
</ul>
<p><strong>Test Your Test</strong></p>
<p><strong>Typical Emotional Storyboard</strong></p>
<ul>
<li>Write Some code! Happy!</li>
<li>Does it work? Sad!</li>
<li>Write some test! Happy!</li>
<li>Do they really test the code? Sad!</li>
<li>Measure the Code Coverage! Happy!</li>
</ul>
<p><strong>Coverage Measurement</strong></p>
<ol>
<li>Shows Which line of code are executed</li>
<li>How much of your code is covered by your tests?</li>
<li>Your tests test your product</li>
<li>Coverage testing tests your tests</li>
</ol>
<p><strong>Goal</strong></p>
<ul>
<li>100%</li>
<li>Coverage Ideal</li>
<li>Not Always possible</li>
<li>Can be expensive to achieve</li>
<li>Design for testability</li>
</ul>
<p><strong>Good: Write more tests</strong><br />
Only way to truly increase code coverage</p>
<p><strong>Bad</strong><br />
Excluding Code to boost Coverage</p>
<p><strong>Types of Coverage</strong></p>
<ol>
<li>Statement Coverage</li>
<li>Branch Coverage</li>
<li>Path Coverage</li>
<li>Loop Path Coverage</li>
<li>Data – driven Code</li>
<li>Complex Conditionals</li>
<li>Hidden Branches</li>
</ol>
<p><strong>How; &#8211; Coverage Tools</strong></p>
<ol>
<li>Clover</li>
<li>Cobertura</li>
<li>Emma</li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-code-coverage-and-why-code-coverage/">What is Code Coverage and Why Code Coverage?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-code-coverage-and-why-code-coverage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
