Skip to content

Commit 585cd6a

Browse files
committed
Add abort logic
1 parent 0305aae commit 585cd6a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Rubberduck.Core/UnitTesting/ProjectTestExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Runtime.InteropServices;
3-
using System.IO;
43
using System.Reflection;
54
using Microsoft.Win32;
65
using Rubberduck.VBEditor.SafeComWrappers.Abstract;

Rubberduck.Core/UnitTesting/TestEngine.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ private void StateChangedHandler(object sender, ParserStateEventArgs e)
5252
RunInternal(_tests);
5353
});
5454
}
55+
56+
if (_testRequested && (e.State == ParserState.ResolverError ||
57+
e.State == ParserState.Error ||
58+
e.State == ParserState.UnexpectedError))
59+
{
60+
_testRequested = false;
61+
}
5562
}
5663

5764
public TestExplorerModel Model { get; }

0 commit comments

Comments
 (0)