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:
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:
I have a fix for that locally and will submit a PR.
cc @MarcoRossignoli