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

Support pytest-randomly #469

Open
sobolevn opened this Issue Jun 16, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@sobolevn
Collaborator

sobolevn commented Jun 16, 2018

It is said, that pytest-randomly supports faker and factory-boy:

Randomly shuffles the order of test items. This is done first at the level of modules, then at the level of test classes (if you have them), then at the order of functions. This also works with things like doctests.
Resets random.seed() at the start of every test case and test to a fixed number - this defaults to time.time() from the start of your test run, but you can pass in --randomly-seed to repeat a randomness-induced failure.
If factory boy is installed, its random state is reset at the start of every test. This allows for repeatable use of its random 'fuzzy' features.
If faker is installed, its random state is reset at the start of every test. This is also for repeatable fuzzy data in tests - factory boy uses faker for lots of data.
If numpy is installed, its random state is reset at the start of every test.

We need to think about possible integration with this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment