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

Allow labelling of values drawn from data strategy #428

Conversation

inglesp
Copy link
Contributor

@inglesp inglesp commented Jan 17, 2017

This results in more useful output in falsifying examples.

If you're happy with this I can update the documentation.

Copy link
Contributor

@alexwlchan alexwlchan left a comment

Choose a reason for hiding this comment

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

Docs additions aside, I think this is good to go. 👍

@@ -49,6 +49,24 @@ def test(data):
assert 'Draw 2: 0' in result


def test_prints_labels_if_given_on_failure():
Copy link
Contributor

Choose a reason for hiding this comment

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

I was going to ask if we need a test that labels aren’t printed when not specified, but I think that’s covered by the existing tests – since the fallback behaviour is not to print any labels, we’d notice if/when those tests broke.

@DRMacIver
Copy link
Member

👍 I like the feature. Pending docs change I'm happy to have it.

@inglesp inglesp force-pushed the allow-labelling-of-values-drawn-from-data-strategy branch from a4148d0 to 51b3c72 Compare January 17, 2017 16:45
@inglesp
Copy link
Contributor Author

inglesp commented Jan 17, 2017

OK, docs updated.

@DRMacIver
Copy link
Member

Sorry, I didn't mean to drop this. I'm happy with this as is, but it needs reformatting ("make format" should fix it followed by "make lint" to check if it did) to make the build pass.

Can you do that and then rebase off master and then I'm totally happy to merge.

This results in more useful output in falsifying examples
@inglesp inglesp force-pushed the allow-labelling-of-values-drawn-from-data-strategy branch from 51b3c72 to f3d174b Compare February 10, 2017 20:32
Copy link
Contributor

@alexwlchan alexwlchan left a comment

Choose a reason for hiding this comment

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

🎉

@alexwlchan alexwlchan merged commit 2ab8282 into HypothesisWorks:master Feb 11, 2017
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