Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition expect-functions to "throwing Message" #146

Open
haf opened this issue Apr 28, 2017 · 0 comments
Open

Transition expect-functions to "throwing Message" #146

haf opened this issue Apr 28, 2017 · 0 comments

Comments

@haf
Copy link
Owner

haf commented Apr 28, 2017

...that way message printers can optionally choose how to format the test data: # runs, # generated datums, # failures, failing input data, succeeding input data, what verbosity things are.

We can initially make this change by letting the different exceptions (skip exception, failure exception) take a Message in their constructors.

This will make the error output possible to colourise, too.

Alternatively we can make tests return values with applicative-based asserts (for parallel/many-results) or monad-based asserts (for first-failing item fails the test).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant