Overview

The Mutation Test Report provides a historical view of mutation testing results executed for different projects. It helps users evaluate the effectiveness of their test cases by displaying key metrics such as mutation score, execution duration, and technology used. This report enables teams to monitor test quality, track previously executed mutation tests, and identify areas where test coverage can be improved.

Pre-requisites

The Cavisson IDE Plugin installation and configuration must be completed prior to report generation. Follow the below-mentioned steps for installing and configuring the Cavisson plugin. The plugin is supported on IDEs such as Visual Studio, Visual Studio Code, IntelliJ IDEA, and Eclipse.

1. Installation

Install the Cavisson Mutation Testing extension in Visual Studio Code.

2. Configuration

Configure the mutation testing profile.

3. Running Tests

For viewing all the generated mutation test reports, you can log in the Product UI and access the mutation test report from Configurations > Advanced

Global Action Icons

The Global Action Icons available at the top-right corner of the table allow users to quickly manage and analyze the mutation test report data.

Mutation Test Report History

This section displays a list of previously generated mutation test reports along with their execution details.

The table contains the following columns:

Mutation Test Report - Mutants

The Mutants tab displays mutation testing results for all project files and directories. It helps evaluate how effectively test cases detect introduced mutations. A summary bar at the top shows the distribution of Killed, Survived, and No Coverage mutants for quick analysis. Below it, a table lists files and directories, allowing users to drill down into folders and individual files to view mutation results in detail.

Mutants Table Columns

Drill Down View

The Mutation Report supports drill-down analysis for deeper insights. By clicking on a File or Directory in the table, a detailed view opens displaying mutation statistics for the selected folder or file. This allows users to analyze mutation results at a more granular level, helping identify files where test coverage is effective or needs improvement.

Code Level View

The Code Level View displays the source code of the selected file along with mutation results. It highlights the code where mutations were applied and shows the corresponding mutation status (such as Killed). This view helps users analyze how test cases interact with specific code lines and identify areas that require improved test coverage.

Mutation Tests

The Tests tab shows how test cases interact with generated mutants during mutation testing. It helps identify which tests successfully detect mutants and which parts of the code are not adequately covered. A summary bar at the top displays mutation results such as Killed, Survived, and No Coverage mutants for quick analysis. Below it, a table lists test directories and files, allowing users to analyze test effectiveness and drill down into folders or individual test files for more detailed insights.

Mutation Tests Table Columns

Drill Down View (Tests)

The Tests tab also supports drill-down analysis. By clicking on a test folder or file, a detailed view opens showing mutation statistics and the corresponding test case code. This helps users analyze how specific test cases kill or cover mutants and evaluate test effectiveness.

Test Case Code View

The Test Case Code View displays the source code of the selected test file along with mutation testing results. It highlights the tests responsible for killing or covering mutants, allowing users to understand how specific test cases validate the code. This view helps analyze the effectiveness of individual test cases in detecting mutations.