pytest-slow-last
Run tests in order of execution time (faster tests first)
Usage
From terminal:
$ pytest --slow-last
Or in pytest.ini:
[pytest] addopts = --slow-last
Installation
You can install “pytest-slow-last” via pip from PyPI:
$ pip install pytest-slow-last
Features
Allows to run tests in order of the execution time of the last run (faster tests first, new tests even before).
-ff option has preference: if a test fails, it will be run first.
By default, test durations are rounded to the 2nd decimal digit: this way, tests which are “more or less of the same speed” are kept in the original order. Use –slow-last-rounding to change that, and set it to -1 to disable.
Requirements
Python >= 3.5
pytest >= 3.5
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the MIT license, “pytest-slow-last” is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.
Metadata
Release files for pytest-slow-last 0.2.1
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 |
|---|---|---|---|---|
| pytest_slow_last-0.2.1.tar.gz | 5.1 kB | Without provenance | Details for pytest_slow_last-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_slow_last-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pytest_slow_last-0.2.1-py2.py3-none-any.whl |
Total release size: 9.5 kB
Release files / pytest_slow_last-0.2.1.tar.gz
| Download URL | pytest_slow_last-0.2.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
319d213afaefc47aa9c3478600b2a2234116c8963a43e857e646e2a599fcff8d
|
|
BLAKE2b-256 checksum How to use checksums |
405dc51f0da872b703e671eaf24550006e29e686e9ecfbf06c565f54658bd194
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.6
|
Release files / pytest_slow_last-0.2.1-py2.py3-none-any.whl
| Download URL | pytest_slow_last-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6414effee05da5f59c1c7b6ddaf6a9f2f4c1d9381745c7d047456c378239d5fe
|
|
BLAKE2b-256 checksum How to use checksums |
a43bb30d511f9e0920f04ffa305d52c5a81d679dd3aa803bca54fa6cb57fb806
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.6
|
Security for pytest-slow-last 0.2.1
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.