./devel/py-test-randomly, Pytest plugin to randomly order tests and control random.seed

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2019Q1, Version: 2.1.1, Package name: py37-test-randomly-2.1.1, Maintainer: pkgsrc-users

Pytest plugin to randomly order tests and control random.seed.

* 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.


Required to run:
[lang/python37] [devel/py-setuptools]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 284deca847203b9f31e49794f7789272d5f17ebb
RMD160: a56b8565d3653d2b6546df9f8cc510c33659766d
Filesize: 8.852 KB

Version history: (Expand)