Skip to content

Commit 63dff09

Browse files
authored
Merge pull request #298 from ViktorHofer/patch-1
Update corefx testing docs
2 parents a69645c + 2f3f5f9 commit 63dff09

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

README.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ There is a simple performance test for the hit counting instrumentation in the t
440440
441441
The duration of the test can be tweaked by changing the number of iterations in the `[InlineData]` in the `PerformanceTest` class.
442442
443-
For more realistic testing it is recommended to try out any changes to the hit counting code paths on large, realistic projects. If you don't have any handy https://github.com/dotnet/corefx is an excellent candidate. [This page](https://github.com/dotnet/corefx/blob/master/Documentation/building/code-coverage.md) describes how to run code coverage tests for both the full solution and for individual projects with coverlet from nuget. Suitable projects (listed in order of escalating test durations):
443+
For more realistic testing it is recommended to try out any changes to the hit counting code paths on large, realistic projects. If you don't have any handy https://github.com/dotnet/corefx is an excellent candidate. [This page](https://github.com/dotnet/corefx/blob/master/Documentation/building/code-coverage.md) describes how to run code coverage tests for both the full solution and for individual projects with coverlet from nuget. Suitable projects (listed in order of escalating test durations):
444444
445445
* System.Collections.Concurrent.Tests
446446
* System.Collections.Tests
@@ -451,22 +451,10 @@ For more realistic testing it is recommended to try out any changes to the hit c
451451
Change to the directory of the library and run the msbuild code coverage command:
452452
453453
dotnet msbuild /t:BuildAndTest /p:Coverage=true
454-
455-
Look for a line like this:
456-
457-
----- start 18:13:36,59 =============== To repro directly: =====================================================
458-
459-
It is followed by a `pushd` command into the artefact directory, and a command to run coverlet. Run these to get to see the coverlet output and especially the test duration. E.g.:
460-
461-
C:\...\corefx\artifacts\tools\coverlet "System.Collections.Concurrent.Tests.dll" --target ...
462-
454+
463455
To run with a development version of coverlet call `dotnet run` instead of the installed coverlet version, e.g.:
464456
465-
dotnet run -p C:\...\coverlet\src\coverlet.console\coverlet.console.csproj -c Release -- "System.Collections.Concurrent.Tests.dll" --target ...
466-
467-
468-
469-
457+
dotnet msbuild /t:BuildAndTest /p:Coverage=true /p:CoverageExecutablePath="dotnet run -p C:\...\coverlet\src\coverlet.console\coverlet.console.csproj"
470458
471459
## Code of Conduct
472460

0 commit comments

Comments
 (0)