DEV Community

loading...

Discussion on: Coverlet, unit tests coverage for .NET

Collapse
fabasoad profile image
Yevhen Fabizhevskyi

Thanks, it is what I need actually! Also, I have added a few more command line arguments. Here is the command that works for me perfectly (just in case if anyone needs it):

dotnet test ./MySolution.sln /p:CollectCoverage=true /p:MergeWith=$(pwd)/coverage/coverage.json /p:CoverletOutput=$(pwd)/coverage/ "/p:CoverletOutputFormat=\"json,opencover\""
Thread Thread
mteheran profile image
Miguel Teheran Author

Sweet! Thanks for sharing it