I am running coverlet in my Linux CI box. Right now, after I run the command below, regardless if the threshold is met or not, when I check the $? value, the command always returns 0.
dotnet test -p:CollectCoverage=true -p:Threshold=95
I need coverlet to return 0 if all tests passes, and unit test coverage is above the threshold, and 1 if either any of the tests fail, or the threshold is not met.
Has anyone seen this problem before, or know how to fix it? Thanks!