Option --threshold doesn't work, coverage.json is empty #1205
Closed
Description
Hi there!
I am trying to implement Coverlet in my pre-commit script, unit tests are still to be written. I am using this option:
coverlet CBPm.Validations.Test --target "dotnet" --targetargs "test . --no-build" --threshold 80
This snippet sholud retrun non zero value if code coverage is less than 80%.
In my case code coverge is 0% and I still get zero exit code instead of non zero exit code.
In addition to this coverage.json file is generated but it is empty.
Any help would be appreciated.
Kind regards! :)