jobjo / popper

Property-based testing at ease
ISC License
43 stars 1 forks source link

Catch errors thrown inside test functions #46

Closed jobjo closed 3 years ago

jobjo commented 3 years ago

Collect errors thrown in the body of tests. Example:

let () =
  check @@ fun () ->
  let* _ = Sample.Int.range 0 10 in
  failwith "Oh no"
jobjo commented 3 years ago

Fixed in https://github.com/jobjo/popper/pull/50