Skip to content

Option --threshold doesn't work, coverage.json is empty #1205

Closed
@milica-nikolic

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! :)

Metadata

Assignees

Labels

driver-consoleIssue related to dotnet net tool driverdriver-msbuildIssue related to msbuild driverwaiting for customerWaiting for customer action

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions