coverlet-coverage / coverlet

Cross platform code coverage for .NET
MIT License
2.99k stars 385 forks source link

Coverlet.Console does not seem to work #551

Closed abhiphirke closed 5 years ago

abhiphirke commented 5 years ago

I am trying to use Coverlet.Console 1.5.3 which does not seem to work. With multiple simple test projects (using .Net Core 2.2.107) having different coverage stats and straightforward configuration, I am always getting:

  1. empty coverage.json

  2. coverage.opencover.xml as: <?xml version="1.0" encoding="utf-8"?>

  3. And wrong coverage information as: +--------+------+--------+--------+ | Module | Line | Branch | Method | +--------+------+--------+--------+

+---------+------+--------+--------+ | | Line | Branch | Method | +---------+------+--------+--------+ | Total | 100% | 100% | 100% | +---------+------+--------+--------+ | Average | ∞% | ∞% | ∞% | +---------+------+--------+--------+

After struggling a lot with this, I am still not able to make it to work. What possibly I am doing wrong here? Please help. Thanks you.

PS: With Coverlet.Msbuild 2.6.3, this is working well.

MarcoRossignoli commented 5 years ago

Can you attach the command line you're using?

MarcoRossignoli commented 5 years ago

@abhiphirke any news? Feel free to close if solved.

MarcoRossignoli commented 5 years ago

Close for stale, feel free to re-open if needed.