diff --git a/src/canopy/runner.fs b/src/canopy/runner.fs index 51416267..9e0ea7da 100644 --- a/src/canopy/runner.fs +++ b/src/canopy/runner.fs @@ -100,17 +100,17 @@ let run () = try suite.Before () test.Func () - with - | ex when failureMessage <> null && failureMessage = ex.Message -> pass() - | ex -> fail ex test.Id <| safelyGetUrl() - finally - suite.After () - pass() - + finally + suite.After () + pass() + with + | ex when failureMessage <> null && failureMessage = ex.Message -> pass() + | ex -> fail ex test.Id <| safelyGetUrl() + reporter.testEnd test.Id failureMessage <- null - + //run all the suites if runFailedContextsFirst = true then let failedContexts = history.get()