CoverageChecker.CommandLine
0.7.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global CoverageChecker.CommandLine --version 0.7.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local CoverageChecker.CommandLine --version 0.7.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=CoverageChecker.CommandLine&version=0.7.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package CoverageChecker.CommandLine --version 0.7.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Coverage Checker Command Line Tool
The Coverage Checker command line tool is a .NET tool for extracting code coverage metrics from various code coverage formats.
For general information about the Coverage Checker project, see the repository's main README file.
Installation
To install the Coverage Checker command line tool, install the CoverageChecker.CommandLine NuGet package:
dotnet tool install --global CoverageChecker.CommandLine
Usage
The CoverageChecker.CommandLine tool can be invoked by running coveragechecker from the command line.
| Option | Description | Required | Default |
|---|---|---|---|
-f, --format |
The format of the coverage file(s). Options: SonarQube, Cobertura |
Yes | |
-d, --directory |
The directory to search for the coverage file(s) within. | No | The current directory |
-g, --glob-patterns |
The glob pattern(s) to use to search for the coverage file(s). | No | *.xml |
-l, --line-threshold |
The line coverage threshold. Default: 80 | No | 80 |
-b, --branch-threshold |
The branch coverage threshold. Default: 80 | No | 80 |
Output
The CoverageChecker Command Line tool reads the specified coverage files and outputs the line and branch coverage of the analyzed files. If the line or branch coverage is below the specified threshold, the tool will exit with a non-zero exit code.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.