Request for more helpful hypothesis.errors.FlakyStrategyDefinition:
error message when a precondition
is flaky.
#4206
Labels
legibility
make errors helpful and Hypothesis grokable
I had a hard time debugging a stateful test failure today:
As you can see, this traceback does not tell me why this run was "flaky". After quite some debugging, it turns out the the next rule the state machine expected to fire would not fire because of a
precondition
that was not satisified. Thisprecondition
was satisfied on a previous run, and the rule fired. Thus the flakiness.It would be a lot more helpful if hypothesis could surface the fact that a precondition for a particular rule was flaky, or at least tell us what rule it expected to fire next.
The text was updated successfully, but these errors were encountered: