Hands-On Full Stack Web Development with Aurelia
by Diego Argüelles Rojas, Erikson Murrugarra Murrugarra Sifuentes
Calculating code coverage
With our integration test already written and running, we have one thing pending to do. It would be an awesome thing if we could see how our tests are doing with respect to our app in terms of test coverage.
Let’s add code coverage to the app!
Istanbul is a very famous JavaScript code coverage tool that computes different metrics such as statement quality, lines of code, function use, and branch coverage with module loader hooks to analyze all our code and add coverage when running tests, giving us real-time information about our application. It supports all kinds of JavaScript coverage use cases, from unit tests to functional and browser tests. The best part about this is that it is scalable.
Fortunately, we just ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access