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

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


Branch: CURRENT, Version: 1.2.3, Package name: py27-test-randomly-1.2.3, 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:
[devel/py-setuptools] [lang/python27] [devel/py-test]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: f991c5f2a580f215552eee04960ab03eff1376b8
RMD160: 36a7a6046cad1879d3b7e88dc10ce7a92337cc27
Filesize: 8.103 KB

Version history: (Expand)


CVS history: (Expand)


   2018-10-07 10:13:09 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
py-test-randomly: added version 1.2.3

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.