Skip to content

Commit 3fbbadd

Browse files
committed
fix(Sprout): update logic to handle edge cases
1 parent 5077edb commit 3fbbadd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sprout.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ let runTestSuiteWithContext (context: TestContext) (sb: Describe) =
333333
let! testResults = Runner.doRunTestSuite sb { context with Path = Path (context.Path.Value @ [sb.Name]) }
334334
context.Reporter.EndSuite(sb.Name, context.Path)
335335
context.Reporter.End testResults
336+
return testResults |> Array.sumBy (function Failed _ -> 1 | _ -> 0)
336337
}
337338

338339
let runTestSuite (describe: Describe) =

0 commit comments

Comments
 (0)