Skip to content

Code coverage shows line- 0 of n covered #182

@NayanPanchal3

Description

@NayanPanchal3

I'm using Microsoft.CodeCoverage 17.14.1 and running the tests on Azure DevOps pipeline using the VSTest@2 task.
The CodeCoverage report is getting generated, and assemblies with the respective PDB's are present in the same directory.

The Target platform of test projects is .NET Framework v481, and tests are written in C# and have DLLs as test assemblies.
I've not added the reference of the Microsoft.NET.Test.Sdk to the test projects and haven't added the props and targets of the same.

The report says 0 lines covered out of n number of coverable lines.

Is it required to add the Microsoft.NET.Test.Sdk reference to my test projects to get the code coverage stuff working?
Is Microsoft.CodeCoverage 17.14.1 capable of covering the C# test assemblies' code coverage?

Does it need to have all PDB files on which test assemblies have references?, I mean the projects on which tests are being performed using test projects?

Logs.zip

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