-
Notifications
You must be signed in to change notification settings - Fork 392
Closed
Description
With the exact same command-line, coverlet console 1.5.0 is instrumenting and reporting coverage for the unit test project itself, where in 1.4.1 it only instrumented the project under test as expected.
coverlet TestProject1/bin/Debug/netcoreapp2.1/TestProject1.dll --target "dotnet" --targetargs "test --no-build"
coverlet console 1.4.1
Calculating coverage result...
Generating report '/projects/customer/coverage.json'
+-------------------------+--------+--------+--------+
| Module | Line | Branch | Method |
+-------------------------+--------+--------+--------+
| customer | 29% | 23.1% | 47.1% |
+-------------------------+--------+--------+--------+
+---------+--------+--------+--------+
| | Line | Branch | Method |
+---------+--------+--------+--------+
| Total | 29% | 23.1% | 47.1% |
+---------+--------+--------+--------+
| Average | 29% | 23.1% | 47.1% |
+---------+--------+--------+--------+
coverlet console 1.5.0
Calculating coverage result...
Generating report '/projects/customer/coverage.json'
+-------------------------+-------+--------+--------+
| Module | Line | Branch | Method |
+-------------------------+-------+--------+--------+
| customer | 29% | 23.1% | 47.1% |
+-------------------------+-------+--------+--------+
| TestProject1 | 81.6% | 16.7% | 71.4% |
+-------------------------+-------+--------+--------+
+---------+--------+--------+--------+
| | Line | Branch | Method |
+---------+--------+--------+--------+
| Total | 36.7% | 22.9% | 48.3% |
+---------+--------+--------+--------+
| Average | 18.35% | 11.45% | 24.15% |
+---------+--------+--------+--------+
Metadata
Metadata
Assignees
Labels
No labels