Skip to content

Commit 7e104df

Browse files
committed
Improve error reporting when the test run throws an exception
1 parent 9c97dae commit 7e104df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Components/TestExplorer.fs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,6 +1930,12 @@ module Interactions =
19301930
TestRun.Output.appendWarningLine testRun message
19311931
with ex ->
19321932
logger.Debug("Test run failed with exception", ex)
1933+
TestRun.Output.appendErrorLine testRun $"The test run errored {Environment.NewLine}{string ex}"
1934+
1935+
window.showErrorMessage (
1936+
"Test run errored. See TestResults or Output > F# - Test Adapter for more info"
1937+
)
1938+
|> ignore
19331939
}
19341940

19351941
let runHandler

0 commit comments

Comments
 (0)