Skip to content

Commit 941edae

Browse files
committed
Error if unexpected TestOutcomeDTO value found.
This should not happen. If it does, it means ionide and the language server are out of sync
1 parent 326c472 commit 941edae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Components/TestExplorer.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ module TestResultOutcome =
237237
| TestOutcomeDTO.Skipped -> TestResultOutcome.Skipped
238238
| TestOutcomeDTO.None -> TestResultOutcome.NotExecuted
239239
| TestOutcomeDTO.NotFound -> TestResultOutcome.NotExecuted
240+
| _ -> failwith $"Unknown value for TestOutcomeDTO: {outcomeDto}. The language server may have changed its possible values."
240241

241242

242243
type TestFrameworkId = string

0 commit comments

Comments
 (0)