@@ -148,18 +148,29 @@ Task("Test")
148
148
. IsDependentOn ( "Build" )
149
149
. Does ( ( ) =>
150
150
{
151
+ Information ( "Testing against NUnit 3.xx" ) ;
151
152
DotNetTest ( TEST_PROJECT , new DotNetTestSettings
152
153
{
153
154
Configuration = configuration ,
154
155
Loggers = new string [ ] { "trx" } ,
155
- VSTestReportPath = "TestResult.xml" ,
156
+ VSTestReportPath = "TestResult-NUnit3.xml" ,
157
+ MSBuildSettings = new DotNetMSBuildSettings ( ) . WithProperty ( "NUnitVersion" , "3" )
158
+ } ) ;
159
+ Information ( "Testing against NUnit 4.xx" ) ;
160
+ DotNetTest ( TEST_PROJECT , new DotNetTestSettings
161
+ {
162
+ Configuration = configuration ,
163
+ Loggers = new string [ ] { "trx" } ,
164
+ VSTestReportPath = "TestResult-NUnit4.xml" ,
165
+ MSBuildSettings = new DotNetMSBuildSettings ( ) . WithProperty ( "NUnitVersion" , "4" )
156
166
} ) ;
157
167
} )
158
168
. Finally ( ( ) =>
159
169
{
160
170
if ( AppVeyor . IsRunningOnAppVeyor )
161
171
{
162
- AppVeyor . UploadTestResults ( "TestResult.xml" , AppVeyorTestResultsType . MSTest ) ;
172
+ AppVeyor . UploadTestResults ( "TestResult-NUnit3.xml" , AppVeyorTestResultsType . MSTest ) ;
173
+ AppVeyor . UploadTestResults ( "TestResult-NUnit4.xml" , AppVeyorTestResultsType . MSTest ) ;
163
174
}
164
175
} ) ;
165
176
0 commit comments