Accumulate test times even if one fails

This commit is contained in:
George Thomas 2026-01-11 23:54:46 +00:00
parent 05e8eeffee
commit 1a06ea1b51

View File

@ -435,7 +435,7 @@ runTests opts r0 (TestTree name tc ts) =
pure $ Left $ ExceptionFailure e
Right (Right (r, dt)) -> do
rs <- for ts $ runTests opts r
let childTimes = either (const 0) id $ fmap (sum . map fst) $ traverse (.result) rs
let childTimes = sum $ map (either (const 0) fst . (.result)) rs
pure $ Right (dt + childTimes, rs)
where
runTest = \case