Measure your code coverage using Istanbul (with a demo)

<p>It&rsquo;s well understood that unit testing improves the quality and the maintainability of source code.&nbsp;<strong>BUT&hellip;&nbsp;</strong>how can we gauge the quality of our unit tests? Enter: code coverage measurement tools!</p> <p>Essentially, code coverage is a simple measurement of the percentage of our source code that was executed during a cycle of automated tests. The code coverage score will be as high as the percentage of code that has been tested. Code coverage percentage is collected by using a tool which uses tracing calls and runs a full set of automated tests against the code. A good tool will tell you not only the percentage of the code that is executed, but also will allow you to drill into the data and see exactly which lines of code were executed during a particular test.</p> <p><a href="https://medium.com/walkme-engineering/measure-your-nodejs-code-coverage-using-istanbul-82b129c81ae9"><strong>Learn More</strong></a></p>
Tags: Code Coverage