./devel/py-test-xdist, Plugin for distributed testing and loop-on-failing modes

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


Branch: CURRENT, Version: 3.6.1, Package name: py312-test-xdist-3.6.1, Maintainer: pkgsrc-users

The pytest-xdist plugin extends py.test with some unique test execution modes:
* test run parallelization: if you have multiple CPUs or hosts you can use
those for a combined test run. This allows to speed up development or to use
special resources of remote machines.
* --boxed: (not available on Windows) run each test in a boxed subprocess to
survive SEGFAULTS or otherwise dying processes
* --looponfail: run your tests repeatedly in a subprocess. After each run
py.test waits until a file in your project changes and then re-runs the
previously failing tests. This is repeated until all tests pass after which
again a full run is performed.
* Multi-Platform coverage: you can specify different Python interpreters or
different platforms and run tests in parallel on all of them.


Required to run:
[devel/py-setuptools] [devel/py-test] [lang/py-six] [devel/py-execnet] [devel/py-test-forked] [lang/python37]

Required to build:
[pkgtools/cwrappers] [devel/py-setuptools_scm]

Master sites:

Filesize: 82.09 KB

Version history: (Expand)


CVS history: (Expand)


   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-05-06 06:27:43 by Adam Ciarcinski | Files touched by this commit (1)
Log message:
py-test-xdist: use correct path to py-setuptools
   2024-04-30 08:58:44 by Adam Ciarcinski | Files touched by this commit (1)
Log message:
py-test-xdist: fix PKGNAME
   2024-04-30 08:35:07 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-test-xdist: updated to 3.6.1

pytest-xdist 3.6.1 (2024-04-28)
===============================

Bug Fixes
---------

- Add backward compatibility for deadlock issue with the ``execnet`` new \ 
``main_thread_only`` "execmodel" triggered when pytest-cov accesses \ 
rinfo.

pytest-xdist 3.6.0 (2024-04-19)
===============================

This release was YANKED due to a regression fixed in 3.6.1.

Features
--------

- ``pytest-xdist`` workers now always execute the tests in the main thread.
  Previously some tests might end up executing in a separate thread other than \ 
``main`` in the workers, due to some internal `execnet`` details. This can cause \ 
problems specially with async frameworks where the event loop is running in the \ 
``main`` thread.

Bug Fixes
---------

- Added proper handling of ``shouldstop`` (such as set by ``--max-fail``) and \ 
``shouldfail`` conditions in workers.
  Previously, a worker might have continued executing further tests before the \ 
controller could terminate the session.

- Fixed compatibility issue between `looponfail` and editable installs.

- Use the new ``main_thread_only`` ``execnet`` "execmodel" so that \ 
code which expects to only run in the main thread will now work as expected.

- Fixed a bug where plugin would raise an incompatibility error with ``--pdb`` \ 
despite using ``-n0``.

Removals
--------

- Dropped support for Python 3.7.

- pytest>=7.0.0 is now required.

  execnet>=2.1.0 is now required.

Trivial Changes
---------------

- pytest-xdist's ``setup.py`` file is removed.

  If you relied on this file, e.g. to install pytest using ``setup.py install``,
  please see `Why you shouldn't invoke setup.py directly \ 
<https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary>`_ \ 
for alternatives.

- The internals of pytest-xdist are now fully typed. The typing is not exposed yet.

- Adjusted license file format and content to ensure security scanners will \ 
identity the license.
   2023-11-21 21:37:43 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-xdist: updated to 3.5.0

pytest-xdist 3.5.0 (2023-11-21)

Features

- ``--dist=loadscope`` now sorts scopes by number of tests to assign largest \ 
scopes early -- in many cases this should improve overall test session running \ 
time, as there is less chance of a large scope being left to be processed near \ 
the end of the session, leaving other workers idle.
   2023-11-16 10:24:03 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-xdist: updated to 3.4.0

pytest-xdist 3.4.0 (2023-11-11)

Features

- Wait for workers to finish reporting when test run stops early.

  This makes sure that the results of in-progress tests are displayed.
  Previously these reports were being discarded, losing information about the
  test run.

- Added support for Python 3.12.
   2023-10-28 21:57:26 by Thomas Klausner | Files touched by this commit (516) | Package updated
Log message:
python/wheel.mk: simplify a lot, and switch to 'installer' for installation

This follows the recommended bootstrap method (flit_core, build, installer).

However, installer installs different files than pip, so update PLISTs
for all packages using wheel.mk and bump their PKGREVISIONs.
   2023-05-24 08:53:06 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-xdist: updated to 3.3.1

pytest-xdist 3.3.1 (2023-05-19)

Bug Fixes
- Avoid remote calls during startup as ``execnet`` by default does not ensure \ 
remote affinity with the
  main thread and might accidentally schedule the pytest worker into a non-main \ 
thread, which breaks numerous frameworks,
  for example ``asyncio``, ``anyio``, ``PyQt/PySide``, etc.

  A more safe correction will require thread affinity in ``execnet``

pytest-xdist 3.3.0 (2023-05-12)

Features
- Improved progress output when collecting nodes to be less verbose.