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

Adds a "starts with prop_ but is not a Property" warning. #23

Conversation

damncabbage
Copy link
Contributor

(Fixes #22)

Sample output (from running pulp test on this project):

* Running tests...

*** Warning ***
- prop_bad starts with prop_ but is not of type Property

  You may be trying to define something like:
    prop_example :: Int -> Property

  Jack doesn't have Arbitrary like QuickCheck, and so cannot automatically provide
  property inputs in the same way; it uses forAll instead.
  See https://github.com/jystic/purescript-jack#getting-started for some property
  examples to get started with.

=== prop_even_strings_end_with_evens from Test.Foo ===
+++ OK, passed 100 tests.

=== prop_example from Test.Foo ===
+++ OK, passed 100 tests.

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

Successfully merging this pull request may close these issues.

FR: Warn when name starts with prop_ but is not a Property
1 participant