./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: 3.3.1, Package name: py39-test-randomly-3.3.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:
[devel/py-setuptools] [devel/py-test] [lang/python37] [devel/py-importlib-metadata]

Required to build:
[pkgtools/cwrappers]

Master sites:

RMD160: 456da37f5fdccb3f856ad7ef26a281a3374de8a0
Filesize: 30.254 KB

Version history: (Expand)


CVS history: (Expand)


   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2020-05-16 18:42:52 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-randomly: updated to 3.3.1

3.3.1:
* Fix to work when pytest-xdist is not installed or active
  (``PluginValidationError: unknown hook 'pytest_configure_node'``).

3.3.0:
* Add `pytest-xdist <https://pypi.org/project/pytest-xdist/>`__ support.
  Previously it only worked reliably when setting ``--randomly-seed``
  explicitly. When not provided, the default seed generated in workers could
  differ and collection would fail. Now when it is not provided, all xdist
  worker processes shared the same default seed generated in the master
  process.

3.2.1:
* Update ``MANIFEST.in`` so tests are included in the sdist tarball again.

3.2.0:
* Converted setuptools metadata to configuration file. This meant removing the
  ``__version__`` attribute from the package. If you want to inspect the
  installed version, use
  ``importlib.metadata.version("pytest-randomly")``
  (`docs \ 
<https://docs.python.org/3.8/library/importlib.metadata.html#distribution-versions>`__ \ 
/
  `backport <https://pypi.org/project/importlib-metadata/>`__).
* Convert reading entrypoints to use ``importlib.metadata``. Depend on
  ``importlib-metadata`` on Python < 3.8.
* Update Python support to 3.5-3.8.
   2019-12-13 12:20:31 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-randomly: updated to 3.1.0

3.1.0:
Add plugins via entry points pytest_randomly.random_seeder to allow outside \ 
packages to register additional random generators to seed. This has added a \ 
dependency on the entrypoints package.

3.0.0:
Update Python support to 3.5-3.7, as 3.4 has reached its end of life.
Handle CollectErrors and ImportErrors during collection when accessing item.module.
   2019-03-27 09:38:37 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-randomly: updated to 2.1.1

2.1.1:
* Fix including tests in sdist after re-arrangement in 2.1.0.
   2019-03-02 15:55:27 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-randomly: updated to 2.1.0

2.1.0:
* Add the option --randomly-seed=last to reuse the last used value for the
  seed.
   2019-02-28 14:53:15 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-randomly: updated to 2.0.0

2.0.0:
* Drop Python 2 support, only Python 3.4+ is supported now.
   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.