Skip to content

1.5.0 instruments and reports on the unit test project in addition to the assembly under test. #372

@scovel

Description

@scovel

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions