You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/coverlet.console/Program.cs
+16-5
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ static int Main(string[] args)
34
34
varverbosity=newOption<LogLevel>(new[]{"--verbosity","-v"},()=>LogLevel.Normal,"Sets the verbosity level of the command. Allowed values are quiet, minimal, normal, detailed."){Arity=ArgumentArity.ZeroOrOne};
35
35
varformats=newOption<string[]>(new[]{"--format","-f"},()=>new[]{"json"},"Format of the generated coverage report."){Arity=ArgumentArity.ZeroOrMore,AllowMultipleArgumentsPerToken=true};
36
36
varthreshold=newOption<string>("--threshold","Exits with error if the coverage % is below value."){Arity=ArgumentArity.ZeroOrOne};
37
-
varthresholdTypes=newOption<List<string>>("--threshold-type",()=>newList<string>(newstring[]{"line","branch","method"}),"Coverage type to apply the threshold to.").FromAmong("line","branch","method");
37
+
Option<List<string>>thresholdTypes=newOption<List<string>>("--threshold-type",()=>newList<string>(newstring[]{"line","branch","method"}),"Coverage type to apply the threshold to.").FromAmong("line","branch","method");
38
38
varthresholdStat=newOption<ThresholdStatistic>("--threshold-stat",()=>ThresholdStatistic.Minimum,"Coverage statistic used to enforce the threshold value."){Arity=ArgumentArity.ZeroOrOne};
39
39
varexcludeFilters=newOption<string[]>("--exclude","Filter expressions to exclude specific modules and types."){Arity=ArgumentArity.ZeroOrMore,AllowMultipleArgumentsPerToken=true};
40
40
varincludeFilters=newOption<string[]>("--include","Filter expressions to include only specific modules and types."){Arity=ArgumentArity.ZeroOrMore,AllowMultipleArgumentsPerToken=true};
@@ -49,6 +49,7 @@ static int Main(string[] args)
49
49
vardoesNotReturnAttributes=newOption<string[]>("--does-not-return-attribute","Attributes that mark methods that do not return"){Arity=ArgumentArity.ZeroOrMore,AllowMultipleArgumentsPerToken=true};
50
50
varexcludeAssembliesWithoutSources=newOption<string>("--exclude-assemblies-without-sources","Specifies behaviour of heuristic to ignore assemblies with missing source documents."){Arity=ArgumentArity.ZeroOrOne};
51
51
varsourceMappingFile=newOption<string>("--source-mapping-file","Specifies the path to a SourceRootsMappings file."){Arity=ArgumentArity.ZeroOrOne};
52
+
varunloadCoverletModuleOnly=newOption<bool>("--unload-coverlet-module-only","Specifies Whether or not coverlet will generate a report"){Arity=ArgumentArity.ZeroOrOne};
0 commit comments