-
Notifications
You must be signed in to change notification settings - Fork 392
Description
Hello,
Problem description
I have an issue using coverlet and xUnit to test and compute coverage on .NET Framework 4.8 project. (I use the coverlet console as entry point)
The coverlet works properly when project is build and than tested.
The issue is about no coverage computed when the project is moved after the build.
The context is for multi-agent setup in Azure DevOps, where the location of the source, binaries and tests are located based on agent name and build number.
Diagnostic
I found by debugging the source code that coverlet is not able to find the pdb files.
The locations that are searched is PDB embeded in dll module, and original build location.
The build location mapping is not available to coverlet console. :(
Unfortunately there is not log message even with detailed mode to see that problem.
Possible solution
I will propose solution to this issue later today. It is to extend the search locations for pdb files, as those are usually located next to the dll module file for .NET Framework projects.
Context:
- Build agents Azure DevOps,
- OS: Windows 10 64 bit,
- Coverlet: 5.7.2,
- xUnit: 2.4.1,
- .NET stack: .NET Framework 4.8