@@ -72,7 +72,7 @@ public void StandAloneThreshold()
72
72
string outputPath = $ "{ clonedTemplateProject . ProjectRootPath } { Path . DirectorySeparatorChar } coverage.json";
73
73
DotnetCli ( $ "build -f { _buildTargetFramework } { clonedTemplateProject . ProjectRootPath } ", out string standardOutput , out string standardError ) ;
74
74
string publishedTestFile = clonedTemplateProject . GetFiles ( "*" + ClonedTemplateProject . AssemblyName + ".dll" ) . Single ( f => ! f . Contains ( "obj" ) && ! f . Contains ( "ref" ) ) ;
75
- Assert . True ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --output \" { clonedTemplateProject . ProjectRootPath } \" \\ ", out standardOutput , out standardError ) ) ;
75
+ Assert . False ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --output \" { outputPath } \" ", out standardOutput , out standardError ) ) ;
76
76
if ( ! string . IsNullOrEmpty ( standardError ) )
77
77
{
78
78
_output . WriteLine ( standardError ) ;
@@ -98,7 +98,7 @@ public void StandAloneThresholdLine()
98
98
string outputPath = $ "{ clonedTemplateProject . ProjectRootPath } { Path . DirectorySeparatorChar } coverage.json";
99
99
DotnetCli ( $ "build -f { _buildTargetFramework } { clonedTemplateProject . ProjectRootPath } ", out string standardOutput , out string standardError ) ;
100
100
string publishedTestFile = clonedTemplateProject . GetFiles ( "*" + ClonedTemplateProject . AssemblyName + ".dll" ) . Single ( f => ! f . Contains ( "obj" ) && ! f . Contains ( "ref" ) ) ;
101
- Assert . True ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --threshold-type line --output \" { clonedTemplateProject . ProjectRootPath } \" \\ ", out standardOutput , out standardError ) ) ;
101
+ Assert . False ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --threshold-type line --output \" { outputPath } \" ", out standardOutput , out standardError ) ) ;
102
102
if ( ! string . IsNullOrEmpty ( standardError ) )
103
103
{
104
104
_output . WriteLine ( standardError ) ;
@@ -124,7 +124,7 @@ public void StandAloneThresholdLineAndMethod()
124
124
string outputPath = $ "{ clonedTemplateProject . ProjectRootPath } { Path . DirectorySeparatorChar } coverage.json";
125
125
DotnetCli ( $ "build -f { _buildTargetFramework } { clonedTemplateProject . ProjectRootPath } ", out string standardOutput , out string standardError ) ;
126
126
string publishedTestFile = clonedTemplateProject . GetFiles ( "*" + ClonedTemplateProject . AssemblyName + ".dll" ) . Single ( f => ! f . Contains ( "obj" ) && ! f . Contains ( "ref" ) ) ;
127
- Assert . True ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --threshold-type line --threshold-type method --output \" { clonedTemplateProject . ProjectRootPath } \" \\ ", out standardOutput , out standardError ) ) ;
127
+ Assert . False ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --threshold-type line --threshold-type method --output \" { outputPath } \" ", out standardOutput , out standardError ) ) ;
128
128
if ( ! string . IsNullOrEmpty ( standardError ) )
129
129
{
130
130
_output . WriteLine ( standardError ) ;
0 commit comments