Created
September 26, 2019 01:13
-
-
Save mhagrelius/165b46ef77cf3a6fcc4c071681fcac56 to your computer and use it in GitHub Desktop.
Script for collecting code coverage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dotnet test ./Example.Test/Example.Test.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./lcov.info /p:Exclude="[xunit*]*%2c[*]*.generated.cs%2c[Example.Test]*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure you have Coverlet.MSBuild added to the test project and that the libraries you are trying to get coverage on have the appropriate debug information being generated (e.g.