./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.1nb1, Package name: py39-test-randomly-3.3.1nb1, 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:

Filesize: 30.254 KB

Version history: (Expand)


CVS history: (Expand)


   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   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.