microsoft / codecoverage

MIT License
84 stars 11 forks source link

Question about output file coverage.xml #62

Closed weucode closed 1 year ago

weucode commented 1 year ago

When I use dotnet-coverage collect -f xml dotnet run to collect the coverage results about my project, there are some skipped functions with the reason being no_symbols. What does no_symbols mean? If I want to collect the coverage results of the specified .dll file, what should I do?

fhnaseer commented 1 year ago

no_symbols flag is for dll level. For example if pdb is missing for a specific dll, then we cannot calculate code coverage against it.

If you are seeing it on function level, then can you please send coverage report and dll + pdb?

weucode commented 1 year ago

Thanks! That is enough! I added the .pdb file for the specific .dll file so that I can get code coverage of this .dll file.