Automation Rhapsody

Posts with tag: Code coverage

How to gather code coverage with Istanbul and Selenium and pitfalls to avoid

Istanbul does not seem to be recoding code coverage correctly, it turned out that the tests do navigation by changing the URL, which resets the code coverage.

Testing with Cypress - Code coverage with Istanbul

This article describes how to extract and process Istanbul code coverage, and generate HTML reports.

Testing with Cypress - Build a React application with Node.js backend

Short introduction to the application under test that is created for and used in all Cypress examples. It is React frontend created with Create React App package. Backend is a Node.js application running on Express.

Code coverage of Ruby on Rails application with simplecov

How to measure code coverage of Ruby on Rails application with simplecov.

.NET Core code coverage on Linux with MiniCover

How to run code coverage of your unit tests as part of your build on Linux build agents.

Code coverage of .NET Core unit tests with OpenCover

Examples how to measure code coverage of .NET Core unit tests with OpenCover.

Code coverage of manual or automated tests with OpenCover for .NET applications

Examples how to do code coverage of manual or automated functional test with OpenCover tool for .NET applications

Code coverage with JaCoCo offline instrumentation with Maven

Tutorial how to do code coverage with offline instrumentation with JaCoCo and Maven.

Automated code coverage of unit tests with JaCoCo and Maven

Tutorial how to setup code coverage with JaCoCo on unit tests to be done on each Maven build.

Code coverage of manual or automated tests with JaCoCo

Tutorial how to do code coverage on automated or even manual functional tests with JaCoCo.

What about code coverage

Code coverage is a measurement of what percentage of program source code is being executed by your tests. Code coverage is a nice to have, but in no case make code coverage ultimate goal!