Skip to content

MarkVecozo/CodeCoverageIssue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeCoverageIssue

This is a minimal test project created to reproduce and investigate a specific issue related to code coverage.
The project uses .NET 8 and includes basic dependencies to simulate the problem scenario.

Purpose

The repository is intended for sharing with others to help diagnose or demonstrate the code coverage issue.

How to Use

  1. Clone the repository.

  2. Open the solution in Visual Studio or VS Code.

  3. Build the project.

  4. Run the tests:

    dotnet test .\TestProject\TestProject.csproj --settings .\default.runsettings

Issue

When running the tests, you should encounter the following error:

Data collector 'Code Coverage' message: Data collector 'Code Coverage' threw an exception during type loading, construction, or initialization: System.MissingMethodException: Method not found: 'Microsoft.CodeCoverage.Core.Configurations.DataCollectorConfiguration Microsoft.CodeCoverage.Core.Configurations.ConfigurationFileUtility.GetConfiguration(System.Xml.XmlElement, Microsoft.CodeCoverage.Core.ILogger)'

Dependencies

Notes

  • No sensitive information is included.
  • This project is for testing and reproduction purposes only.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages