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

Parallel state machine testing #98

Merged
merged 1 commit into from
Jul 15, 2017
Merged

Parallel state machine testing #98

merged 1 commit into from
Jul 15, 2017

Conversation

jacobstanley
Copy link
Member

This adds supports for parallel state machine testing. The shrinking could be vastly improved but it's at least a start.

I have rejigged some of the monad transformers because it now becomes useful to have a pure test which can be used in the post-condition for state machines.

screen shot 2017-07-15 at 2 04 25 pm

@charleso
Copy link

💯

@jacobstanley
Copy link
Member Author

Possibly a better example, it's not a minimal shrink, but it does pretty clearly find that IncRef is not atomic:

screen shot 2017-07-15 at 2 27 19 pm

@jacobstanley jacobstanley merged commit b48b147 into master Jul 15, 2017
@jacobstanley jacobstanley deleted the topic/parallel branch July 15, 2017 04:49
prop_references_parallel =
withTests 1000 . withRetries 10 . property $ do
actions <- forAll $
Gen.parallel (Range.linear 1 50) (Range.linear 1 10) initialState [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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.

3 participants