Skip to content

Properties: Discarding, Aborting #14

@damncabbage

Description

@damncabbage

There are a couple of things that I miss from QuickCheck, but can't figure out how to add without some core changes to Property:

  • ==>: There's no way to Discard a test case; it's either Success or Failure vs [Haskell] QuickCheck's tri-state result.
  • once: There's no equivalent of abort :: Bool; the only cap on the number of times a test is run is all the way back up in check', meaning any change (eg. allowing configuration of the default runner's hardcoded "100 attempts") would be global.

Any thoughts how this should be tackled? My first thought is having Property be more than a newtype, but you might already have an idea as to how you'd tackle this.

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