File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
src/xunit.runner.visualstudio Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<MicrosoftNetCoreAppRefVersion >6.0.11</MicrosoftNetCoreAppRefVersion >
5
- <MicrosoftNetTestSdkVersion >17.6.2 </MicrosoftNetTestSdkVersion >
5
+ <MicrosoftNetTestSdkVersion >17.6.3 </MicrosoftNetTestSdkVersion >
6
6
<MicrosoftSourceLinkGitHubVersion >1.1.1</MicrosoftSourceLinkGitHubVersion >
7
7
<MicrosoftTestPlatformObjectModelVersion >17.6.2</MicrosoftTestPlatformObjectModelVersion >
8
8
<NerdbankGitVersioningVersion >3.6.133</NerdbankGitVersioningVersion >
9
9
<NSubstituteVersion >5.0.0</NSubstituteVersion >
10
10
<TunnelVisionLabsReferenceAssemblyAnnotatorVersion >1.0.0-alpha.160</TunnelVisionLabsReferenceAssemblyAnnotatorVersion >
11
- <XunitAnalyzersVersion >1.2.0-pre.27 </XunitAnalyzersVersion >
12
- <XunitVersion >2.5.0-pre.37 </XunitVersion >
11
+ <XunitAnalyzersVersion >1.2.0-pre.48 </XunitAnalyzersVersion >
12
+ <XunitVersion >2.5.0-pre.43 </XunitVersion >
13
13
</PropertyGroup >
14
14
15
15
</Project >
Original file line number Diff line number Diff line change @@ -578,6 +578,11 @@ void RunTestsInAssembly(
578
578
resultsSink . Finished . WaitOne ( ) ;
579
579
580
580
reporterMessageHandler . OnMessage ( new TestAssemblyExecutionFinished ( assembly , executionOptions , resultsSink . ExecutionSummary ) ) ;
581
+ if ( resultsSink . ExecutionSummary . Failed != 0 && executionOptions . GetStopOnTestFailOrDefault ( ) )
582
+ {
583
+ logger . Log ( "Canceling due to test failure..." ) ;
584
+ cancelled = true ;
585
+ }
581
586
}
582
587
catch ( Exception ex )
583
588
{
You can’t perform that action at this time.
0 commit comments