Pytest Plugin for Distributed Testing and Loop-on-Failing Modes

Edit Package python-pytest-xdist
http://bitbucket.org/hpk42/pytest-xdist

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.

Before running tests remotely, ``py.test`` efficiently "rsyncs" your
program source code to the remote place. All test results
are reported back and displayed to your local terminal.
You may specify different Python versions and interpreters.

Refresh
Refresh
Source Files
Filename Size Changed
0001-Revert-Remove-compat-for-pytest-6.patch 0000004220 4.12 KB
pytest-xdist-2.5.0.tar.gz 0000072455 70.8 KB
python-pytest-xdist.changes 0000016809 16.4 KB
python-pytest-xdist.spec 0000003751 3.66 KB
reintroduce-slave-terminology.patch 0000005158 5.04 KB
Revision 26 (latest revision is 42)
Matej Cepl's avatar Matej Cepl (mcepl) accepted request 946700 from Matthias Fehring's avatar Matthias Fehring (buschmann23) (revision 26)
- Update to 2.5.0
  * Features
    + Full compatibility with pytest 7 - no deprecation warnings or
      use of legacy features.
    + New --dist=loadgroup option, which ensures all tests marked
      with @pytest.mark.xdist_group run in the same session/worker.
      Other tests run distributed as in --dist=load.
  * Trivial Changes
    + Use @pytest.hookspec decorator to declare hook options in
      newhooks.py to avoid warnings in pytest 7.0.
    + Use up-to-date setup.cfg/pyproject.toml packaging setup.
    + Started using type annotations and mypy checking internally.
      The types are incomplete and not published.
- Changes from 2.4.0
  * Features
    + On Linux, the process title now changes to indicate the current
      worker state (running/idle). Depends on the setproctitle package,
      which can be installed with pip install pytest-xdist[setproctitle].
    + Add support for Python 3.10.
- Changes from 2.3.0
  * Deprecations and Removals
    + Python 3.5 is no longer supported.
  * Features
    + Add --numprocesses=logical flag, which automatically uses the
      number of logical CPUs available, instead of physical CPUs
      with auto. This is very useful for test suites which are not
      CPU-bound.
    + Added new pytest_handlecrashitem hook to allow handling and
      rescheduling crashed items.
  * Bug Fixes
    + Copy the parent process sys.path into local workers, to work
      around execnet's python -c adding the current directory to sys.path.
    + Fix issue caused by changing the branch name of the pytest repository.
  * Trivial Changes
    + Replace master with controller where ever possible.
    + Use 'main' to refer to pytest default branch in tox env names.
- Update patches
  * reintroduce-slave-terminology.patch
  * 0001-Revert-Remove-compat-for-pytest-6.patch
- Require setuptools_scm >= 6.0 for building
Comments 0
openSUSE Build Service is sponsored by