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

Add unit tests #32

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Add unit tests #32

merged 1 commit into from
Nov 27, 2023

Conversation

sol
Copy link
Member

@sol sol commented Nov 21, 2023

The reason why I care about this is that I want to further improve the failure messages in a follow up. Specifically:

  • Show less context (currently Hedgehog prints the whole spec, which gets overwhelming on large test files).
  • Adjust the replay message so that it makes sense in the context of hspec.

(see #35)

I think the existing tests are useful as examples. They show how to use this library, but they don't set expectations on how the implementation should behave. That's why I renamed them to ExampleSpec.

@sol sol force-pushed the tests branch 9 times, most recently from a730a09 to f9d33b0 Compare November 21, 2023 07:53
@sol sol changed the title Add test/Test/Hspec/HedgehogSpec.hs Add unit tests Nov 21, 2023
@sol sol marked this pull request as ready for review November 21, 2023 08:00
@sol sol requested a review from parsonsmatt November 21, 2023 08:11
@sol sol merged commit fec5960 into main Nov 27, 2023
6 checks passed
@sol sol deleted the tests branch November 27, 2023 22:38
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.

2 participants