Understanding JavaScript Code Coverage
<p><em>This is the second of a two-post series in which we try to understand how code coverage is measured and reported in JavaScript by building a simple code coverage tool ourselves. You can find the first post </em><a href="https://medium.com/engineering-semantics3/understanding-code-coverage-1074e8fccce0" rel="noopener"><em>here</em></a><em> and the reference code for this exercise </em><a href="https://github.com/amarnus/learning-code-coverage" rel="noopener ugc nofollow" target="_blank"><em>here</em></a><em>.</em></p>
<p>By the end of the <a href="https://engineering.semantics3.com/understanding-code-coverage-1074e8fccce0" rel="noopener ugc nofollow" target="_blank">last post</a>, we had built an instrumenter. It takes our single-file source program and modifies it to add counters. These counters let us measure statement coverage when our tests run. The next step is to make our tests use our instrumented source code.</p>
<p><a href="https://medium.com/engineering-semantics3/understanding-javascript-code-coverage-part-2-9aedaa5119e5"><strong>Learn More</strong></a></p>