coverlet-coverage / coverlet

Cross platform code coverage for .NET
MIT License
2.93k stars 386 forks source link

Fixed VSTest doc incorrect dotnet switch reference #1549

Closed mikey-t closed 8 months ago

mikey-t commented 8 months ago

Fixed a mistake in the doc Documentation\VSTestIntegration.md.

Wrong:

[-r|--results-directory]

Correct:

--results-directory

The -r switch is a valid switch, but it's the short version of the --runtime switch, not a short version of the --results-directory switch:

dotnet test --help
...
  --results-directory <RESULTS_DIR>                          The directory where the test results will be placed.
...
  -r, --runtime <RUNTIME_IDENTIFIER>                         The target runtime to test for.
...
mikey-t commented 8 months ago

@dotnet-policy-service agree