mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
This change enables code coverage for the corefx project using OpenCover. * When /p:Coverage=true is passed, we wrap the xunit call in the OpenCover command. * OpenCover filters test assemblies but no other default filters. * We disable parallel execution of tests within xunit and parallel project building when running coverage. This appears to cause issues with OpenCover (I see spurious failures in tests) and is actually slower than just running execution serially. * A few assemblies still have issues even after this. These have coverage disabled with CoverageEnabledForProject. Will open an issue for future investigation. * After execution is complete, we run the ReportGenerator tool over the set of generated coverage data, creating a full report in bin\tests\coverage. Commit migrated from https://github.com/dotnet/corefx/commit/60a0bdd4125e39aa1653f2aeffc9eea02f348531