This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
Introduce TestResult
#85
Labels
breaking
There is no obvious way to introduce this change without breaking the API
I said in #51 that:
forAll
is good because the compile will enforce the assertion (in the form of a predicate)checkForAll
is good because using an assertion library such asKluent
or similar gives better message in case of falsificationBut it turns out we could have the best of both worlds if the property function returned an
TestResult
(like theExpectation
that must be returned when usingelm-test
's fuzzer).With that we could have both: assertion enforced by the compiler and good messages in case of falsification.
So this issue is about introducing the type
TestResult
and require property tests written withforAny
to always return aTestResult
.A minimal starting API could be:
The text was updated successfully, but these errors were encountered: