Skip to main content

Run tests in order of execution time (faster tests first)

Project description

PyPI version Python versions See Build Status on AppVeyor

Run tests in order of execution time (faster tests first)


  • 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.


  • Python >= 3.5

  • pytest >= 3.5


You can install “pytest-slow-last” via pip from PyPI:

$ pip install pytest-slow-last


`python pytest --slow-last `

Or in pytest.ini:

`ini [pytest] addopts = --slow-last `


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.


Distributed under the terms of the MIT license, “pytest-slow-last” is free and open source software


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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-slow-last-0.1.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

pytest_slow_last-0.1.1-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page