Skip to content

Suggestions: Return if test has succeded or failed (possibly why it has failed) #128

Description

@dschrempf

I use HSpec as a testing framework and it is difficult to know during automatic tests when a law check has failed. I suggest that the function lawsCheck gets a type:

lawsCheck :: Laws -> IO Bool

or something more elaborate if there is need.

EDIT:
For what it's worth, I am using the following function now:

lawsCheckSpec :: Laws -> Spec
lawsCheckSpec (Laws className properties) =
  parallel $
  describe className $
    mapM_ (\(name, p) -> it name (property p)) properties

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions