Kidde82.DotCoverCoverageValidator
1.0.0
dotnet tool install --global Kidde82.DotCoverCoverageValidator --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Kidde82.DotCoverCoverageValidator --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Kidde82.DotCoverCoverageValidator&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Kidde82.DotCoverCoverageValidator --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DotCoverCoverageValidator
Package for check test coverage threshold!
Background
When using dotCover a report file is generated. That report will tell what percentage of your code that is covered by tests. This tool can be used to validate if your tests has a code coverage over the threshold you set.
Prerequisites
You need to have a generated report of type json.
Usage
dotcovercoveragecheck --threshold 80
dotcovercoveragecheck --threshold 80 --dotcoveroutputpath .\coverageOutput\dotCover.Output.json
Arguments
| Argument | Description | Default value |
|---|---|---|
| threshold | Percentage as a number | Required |
| dotcoveroutputpath | Path to dotCover output file | dotCover.Output.json |
Output
This tool will return a ´0´ if the threshold is met. It will return a 1 if there is an error or if the threshold is not met.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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 was computed. 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 was computed. 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.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 593 | 9/5/2021 |