O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required