Closed ViktorHofer closed 4 months ago
@MarcoRossignoli Could you please investigate this when you have some time?
This is outdated, if this is still a problem please file a new issue. Or consider using https://www.nuget.org/packages/Microsoft.CodeCoverage/
This is still an issue and I don't think there's a way of achieving this with the new test platform. Why should I file a new issue when I already provided all the information in this one?
If the coverlet data collector is configured via a .runsettings file and set to
enabled=True
, the InProcessDataCollector isn't added to the vstest.console's internal .runsettings memory representation. The impact is that the code coverage measurement runs as expected but the results aren't stable because of the missing in-proc collector: https://github.com/coverlet-coverage/coverlet/issues/834.Example runsettings file in which coverlet data collector is enabled:
cc @MarcoRossignoli