{"id":7824,"date":"2018-11-27T12:30:10","date_gmt":"2018-11-27T07:00:10","guid":{"rendered":"http:\/\/innoroo.com\/blog\/?p=7824"},"modified":"2018-11-13T19:26:00","modified_gmt":"2018-11-13T13:56:00","slug":"code-coverage-glossary","status":"publish","type":"post","link":"https:\/\/innoroo.com\/blog\/2018\/11\/27\/code-coverage-glossary\/","title":{"rendered":"Code Coverage | Glossary"},"content":{"rendered":"<p><b>Definition:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Code coverage is a term used in software testing to explain how much program source code is covered by a testing plan. Developers look at the number of program subroutines and lines of code that are covered by a set of testing resources and techniques.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Code Coverage testing is determining how much code is being tested. It can be calculated using the formula:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Code Coverage = (Number of lines of code exercised)\/(Total Number of lines of code) * 100%<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Following are the types of code coverage Analysis:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Statement coverage and Block coverage<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Function coverage<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Function call coverage<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Branch coverage<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Modified condition\/decision coverage<\/span><\/li>\n<\/ul>\n<p><b>Further Reading:<\/b><\/p>\n<p><b>Book: <\/b><span style=\"font-weight: 400;\">Agile Testing by <\/span><span style=\"font-weight: 400;\">Janet Gregory and Lisa Crispin. <\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Definition: Code coverage is a term used in software testing to explain how much program source code is covered by a testing plan. Developers look at the number of program subroutines and lines of code that are covered by a set of testing resources and techniques. Code Coverage testing is determining how much code is [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":7943,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Code Coverage | Glossary #CodeCoverage #Glossary #AgileTesting","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[102],"tags":[290,1500,105,1423,1424],"class_list":["post-7824","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-glossary","tag-agile-testing","tag-code-coverage","tag-glossary","tag-janet-gregory","tag-lisa-crispin"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/innoroo.com\/blog\/wp-content\/uploads\/2018\/11\/Code-Coverage.png?fit=3125%2C1709&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rui8-22c","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/innoroo.com\/blog\/wp-json\/wp\/v2\/posts\/7824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innoroo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/innoroo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/innoroo.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/innoroo.com\/blog\/wp-json\/wp\/v2\/comments?post=7824"}],"version-history":[{"count":1,"href":"https:\/\/innoroo.com\/blog\/wp-json\/wp\/v2\/posts\/7824\/revisions"}],"predecessor-version":[{"id":7825,"href":"https:\/\/innoroo.com\/blog\/wp-json\/wp\/v2\/posts\/7824\/revisions\/7825"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/innoroo.com\/blog\/wp-json\/wp\/v2\/media\/7943"}],"wp:attachment":[{"href":"https:\/\/innoroo.com\/blog\/wp-json\/wp\/v2\/media?parent=7824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/innoroo.com\/blog\/wp-json\/wp\/v2\/categories?post=7824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/innoroo.com\/blog\/wp-json\/wp\/v2\/tags?post=7824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}