Run Tox tests in groups, stopping on errors
The test-stages library provides command-line tools that wrap
Python test environment runners such as Tox or Nox,
invoking them so as the various tests are run in parallel, in groups,
as specified on the command line. This allows the fastest tests to be run
first, and the slower ones to only be started if it makes sense (e.g. if
tools like ruff or flake8 did not uncover any trivial syntax errors).
The tox-stages tool runs Tox with the specified groups of test
environments, stopping if any of the tests in a group should fail.
This allows quick static check tools like e.g. ruff to stop
the testing process early, and also allows scenarios like running
all the static check tools before the package's unit or functional
tests to avoid unnecessary failures on simple errors.
The syntax for grouping the test environments to be run is described in the parse-stages library's documentation.
Running Tox tests in groups
The tox-stages tool may be invoked with a list of stages specified on
the command line:
tox-stages run @check @tests
If the tox-stages run command is invoked without any stage specifications,
the tool looks for the stages list of strings in the [tool.test-stages]
section of the pyproject.toml file:
[tool.test-stages]
stages = ["ruff and not @manual", "@check", "@tests"]
Author
The test-stages library is developed by Peter Pentchev in
a GitLab repository.
Metadata
Release files for test-stages 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| test_stages-0.2.0.tar.gz | 25.3 kB | Without provenance | Details for test_stages-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| test_stages-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for test_stages-0.2.0-py3-none-any.whl |
Total release size: 36.2 kB
Release files / test_stages-0.2.0.tar.gz
| Download URL | test_stages-0.2.0.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
370fb9e7d9094a16a54fe085f1c2015c8db73feffe7233ac4b385b31acf82bdc
|
|
BLAKE2b-256 checksum How to use checksums |
102776f1d857a5f29200b8f25791236d225d8412eea1c51a2785b7dbc013c282
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / test_stages-0.2.0-py3-none-any.whl
| Download URL | test_stages-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf1ea3817586b49b1e487d181b1d5c51bb8ba99e86c25be8b242284c87e6d316
|
|
BLAKE2b-256 checksum How to use checksums |
91662f52a4491e484e5a12336bcdab0ea97213d5836eef797372c5b87ded943e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for test-stages 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.