coverlet-coverage / coverlet

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

use latest System.CommandLine version (GA?) #1660

Open Bertk opened 1 month ago

Bertk commented 1 month ago

Update coverlet.console for latest version of System.CommandLine (branch main-powderhouse)

:warning: restore from dotnet libraries feed fails

C:\GitHub\coverlet\artifacts\bin\coverlet.console\debug>coverlet.console.exe --help
Description:
  Cross platform .NET Core code coverage tool

Nutzung:
  coverlet.console <path> [options]

Argumente:
  <path>  Path to the test assembly or application directory.

Optionen:
  -?, -h, --help                                   Show help and usage information
  --version                                        Versionsinformationen anzeigen
  -t, --target (REQUIRED)                          Path to the test runner application.
  -a, --targetargs                                 Arguments to be passed to the test runner.
  -o, --output                                     Output of the generated coverage report
  -v, --verbosity <Detailed|Minimal|Normal|Quiet>  Sets the verbosity level of the command. Allowed values are quiet, minimal, normal, detailed. [default: Normal]
  -f, --format                                     Format of the generated coverage report. [default: json]
  --threshold                                      Exits with error if the coverage % is below value.
  --threshold-stat <Average|Minimum|Total>         Coverage statistic used to enforce the threshold value. [default: Minimum]
  --exclude                                        Filter expressions to exclude specific modules and types.
  --include                                        Filter expressions to include only specific modules and types.
  --exclude-by-file                                Glob patterns specifying source files to exclude.
  --include-directory                              Include directories containing additional assemblies to be instrumented.
  --exclude-by-attribute                           Attributes to exclude from code coverage.
  --include-test-assembly                          Specifies whether to report code coverage of the test assembly.
  --single-hit                                     Specifies whether to limit code coverage hit reporting to a single hit for each location
  --skipautoprops                                  Neither track nor record auto-implemented properties.
  --merge-with                                     Path to existing coverage result to merge.
  --use-source-link                                Specifies whether to use SourceLink URIs in place of file system paths.
  --does-not-return-attribute                      Attributes that mark methods that do not return
  --exclude-assemblies-without-sources             Specifies behaviour of heuristic to ignore assemblies with missing source documents.
  --source-mapping-file                            Specifies the path to a SourceRootsMappings file.
  -?, -h, --help                                   Show help and usage information
  --version                                        Versionsinformationen anzeigen