Skip to main content

pytest-slow-last

PyPI version Python versions

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)

Source distribution for pytest-slow-last 0.2.1
File Size Uploaded
pytest_slow_last-0.2.1.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-slow-last 0.2.1
File Interpreter ABI Platform
pytest_slow_last-0.2.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page