-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Alternative API for stateful tests in Python #737
Comments
Have you seen REST-ler? It doesn't look like it's open source, but there are some nice ideas about inferring dependencies and order of calls that could enhance stateful mode 🙂 Building |
Yep, I actually created this issue after reading that paper :) The current implementation with pytest is quite clunky - it modifies some internals between test executions. I hope that this implementation will be re-iterated in the next major release to incorporate ideas from REST-let & #520.
I tried it a couple of times but decided to go with a more straightforward approach - incorporating RuleBasedStateMachine will require some significant refactorings, but I think it worth it in the long run :)
That sounds really cool! I ran some experiments with Hypothesis' |
As a sidenote HypoFuzz looks awesome to me :) Wondering what bugs were found in |
|
Implemented in #805 🎉 |
Even though now all stateful tests are separate pytest items it might be better to run all of them in a single test function. Something like this:
It might be much easier to implement since there will be no need to integrate it with pytest itself. Also - there will be no mangled execution statistic in the pytest output because it is a single test, there will be no problems with changing hypothesis settings in subsequent steps, etc
The text was updated successfully, but these errors were encountered: