jeudi 17 septembre 2020

dotnet core: code coverage report even coverage is below the threshold

all i want to do is generating my coverage report, even if the minimum coverage is not reached.

I made a Powershell-Script which invokes dotnet -test. When the code coverage is below 80%, dotnet stops and throws an error. Thats why the further powershell-code wont be executed (in which i create the code coverage report). Is there any chance to generate the report even if the coverage is below that 80%? (80% is our threshold)

$ErrorActionPreference = "Stop" //required

Simple but poor solution: Generate a further script to invoke the reportgenerator-process manually...

IDE: VS Code.

Aucun commentaire:

Enregistrer un commentaire