Skip to content

Commit 055f314

Browse files
authored
Merge pull request #232 from tonyhallett/missing-testoperation-state
add log message for missing test operation state !
2 parents 547efee + cc8d59c commit 055f314

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

SharedProject/Impl/TestContainerDiscovery/TestContainerDiscoverer.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private async void OperationState_StateChanged(object sender, OperationStateChan
134134
if(e.State == TestOperationStates.TestExecutionCanceling)
135135
{
136136
await CombinedLogAsync("Test execution cancelling - running coverage will be cancelled.");
137-
await reportGeneratorUtil .EndOfCoverageRunAsync(); // not necessarily true but get desired result
137+
await reportGeneratorUtil.EndOfCoverageRunAsync(); // not necessarily true but get desired result
138138
fccEngine.StopCoverage();
139139
}
140140

@@ -148,6 +148,13 @@ private async void OperationState_StateChanged(object sender, OperationStateChan
148148
{
149149
await TestExecutionFinishedAsync(e.Operation);
150150
}
151+
152+
if (e.State == TestOperationStates.TestExecutionCancelAndFinished)
153+
{
154+
await CombinedLogAsync("There has been an issue running tests. See the Tests output window pane.");
155+
await reportGeneratorUtil.EndOfCoverageRunAsync(); // not necessarily true but get desired result
156+
fccEngine.StopCoverage();
157+
}
151158
}
152159
catch (Exception exception)
153160
{

SharedProject/Output/OutputToolWindowControl.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private void OutputToolWindowControl_Loaded(object sender, RoutedEventArgs e)
117117
{
118118
fccEngine.ReadyForReport();
119119
FCCOutputBrowser.Visibility = Visibility.Visible;
120-
hasLoaded = false;
120+
hasLoaded = true;
121121
}
122122
}
123123

0 commit comments

Comments
 (0)