<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>HOW TO CALCULATE THE EXECUTING LINES IN THE CODE?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85658/how-to-calculate-the-executing-lines-in-the-code</link><description>Hi I am using Unity test framework for generating unit test report and i also want to generate the code coverage report of the code for that i need how many lines of code are executing and total number of lines in the code anyone suggest how i can do</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Mar 2022 15:47:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85658/how-to-calculate-the-executing-lines-in-the-code" /><item><title>RE: HOW TO CALCULATE THE EXECUTING LINES IN THE CODE?</title><link>https://devzone.nordicsemi.com/thread/357727?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 15:47:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a83b285c-e971-424e-9acd-901ad2cd18b5</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For nRF Connect SDK we do have some &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_unity_testing.html"&gt;information about testing with Unity&lt;/a&gt;.&lt;br /&gt;Unity is also used for tests in &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_sdk%2Fstruct%2Fsdk_mesh_latest.html"&gt;nRF5 SDK for Mesh&lt;/a&gt;, but only for Bluetooth mesh related code.&lt;/p&gt;
&lt;p&gt;There are some tools that can use the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fdif.html&amp;amp;anchor=trace"&gt;trace&lt;/a&gt; functionality of the nRF52832 SoC, in order to achieve what you ask for. There is some general information in this decade old stack overflow thread: &lt;a href="https://stackoverflow.com/questions/8565031/how-to-do-code-coverage-on-embedded"&gt;How to do code coverage on embedded&lt;/a&gt;. It should give you some pointers what to look for.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>