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

Test suite gives misleading guideline for --match #859

Open
sshine opened this issue Oct 8, 2019 · 0 comments
Open

Test suite gives misleading guideline for --match #859

sshine opened this issue Oct 8, 2019 · 0 comments
Labels

Comments

@sshine
Copy link
Contributor

sshine commented Oct 8, 2019

When stack test fails, a part of its output is:

Failures:

  test/Tests.hs:20:23: 
  1) isLeapYear 1996 - year divisible by 4, not divisible by 100: leap year
       expected: True
        but got: False

  To rerun use: --match "/isLeapYear/1996 - year divisible by 4, not divisible by 100: leap year/"

Randomized with seed 625767475

The hint to use --match ... has two flaws:

  • This must be done via stack test --ta '--match ...'
  • It should be enough to do stack test --ta '--match 1996'
@sshine sshine added the bug label Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant