@@ -46,7 +46,7 @@ public void TestMsbuild()
46
46
Assert . Equal ( 0 , result ) ;
47
47
Assert . Contains ( "Passed!" , standardOutput , StringComparison . Ordinal ) ;
48
48
Assert . Contains ( "| coverletsamplelib.integration.template | 100% | 100% | 100% |" , standardOutput , StringComparison . Ordinal ) ;
49
- string coverageFileName = $ "coverage.{ _buildTargetFramework } . json";
49
+ string coverageFileName = $ "coverage.json";
50
50
Assert . True ( File . Exists ( Path . Combine ( clonedTemplateProject . ProjectRootPath , coverageFileName ) ) ) ;
51
51
AssertCoverage ( clonedTemplateProject , coverageFileName ) ;
52
52
}
@@ -67,7 +67,7 @@ public void TestMsbuild_NoCoverletOutput()
67
67
Assert . Equal ( 0 , result ) ;
68
68
Assert . Contains ( "Passed!" , standardOutput , StringComparison . Ordinal ) ;
69
69
Assert . Contains ( "| coverletsamplelib.integration.template | 100% | 100% | 100% |" , standardOutput , StringComparison . Ordinal ) ;
70
- string coverageFileName = $ "coverage.{ _buildTargetFramework } . json";
70
+ string coverageFileName = $ "coverage.json";
71
71
Assert . True ( File . Exists ( Path . Combine ( clonedTemplateProject . ProjectRootPath , coverageFileName ) ) ) ;
72
72
AssertCoverage ( clonedTemplateProject , coverageFileName ) ;
73
73
}
@@ -88,7 +88,7 @@ public void TestMsbuild_CoverletOutput_Folder_FileNameWithoutExtension()
88
88
Assert . Equal ( 0 , result ) ;
89
89
Assert . Contains ( "Passed!" , standardOutput , StringComparison . Ordinal ) ;
90
90
Assert . Contains ( "| coverletsamplelib.integration.template | 100% | 100% | 100% |" , standardOutput , StringComparison . Ordinal ) ;
91
- string coverageFileName = $ "file.{ _buildTargetFramework } . json";
91
+ string coverageFileName = $ "file.json";
92
92
Assert . True ( File . Exists ( Path . Combine ( clonedTemplateProject . ProjectRootPath , coverageFileName ) ) ) ;
93
93
AssertCoverage ( clonedTemplateProject , coverageFileName ) ;
94
94
}
@@ -100,7 +100,7 @@ public void TestMsbuild_CoverletOutput_Folder_FileNameExtension()
100
100
Assert . Equal ( 0 , DotnetCli ( $ "test -c { _buildConfiguration } -f { _buildTargetFramework } \" { clonedTemplateProject . ProjectRootPath } \" /p:CollectCoverage=true /p:Include=\" [{ ClonedTemplateProject . AssemblyName } ]*DeepThought\" /p:IncludeTestAssembly=true /p:CoverletOutput=\" { clonedTemplateProject . ProjectRootPath } \" \\ file.ext", out string standardOutput , out string standardError ) ) ;
101
101
Assert . Contains ( "Passed!" , standardOutput , StringComparison . Ordinal ) ;
102
102
Assert . Contains ( "| coverletsamplelib.integration.template | 100% | 100% | 100% |" , standardOutput , StringComparison . Ordinal ) ;
103
- string coverageFileName = $ "file.{ _buildTargetFramework } . ext";
103
+ string coverageFileName = $ "file.ext";
104
104
Assert . True ( File . Exists ( Path . Combine ( clonedTemplateProject . ProjectRootPath , coverageFileName ) ) ) ;
105
105
AssertCoverage ( clonedTemplateProject , coverageFileName ) ;
106
106
}
@@ -143,7 +143,7 @@ public void TestMsbuild_CoverletOutput_Folder_FileNameWithDoubleExtension()
143
143
}
144
144
Assert . Contains ( "Passed!" , standardOutput , StringComparison . Ordinal ) ;
145
145
Assert . Contains ( "| coverletsamplelib.integration.template | 100% | 100% | 100% |" , standardOutput , StringComparison . Ordinal ) ;
146
- string coverageFileName = $ "file.ext1.{ _buildTargetFramework } . ext2";
146
+ string coverageFileName = $ "file.ext1.ext2";
147
147
Assert . True ( File . Exists ( Path . Combine ( clonedTemplateProject . ProjectRootPath , coverageFileName ) ) ) ;
148
148
AssertCoverage ( clonedTemplateProject , coverageFileName ) ;
149
149
}
0 commit comments