Skip to main content

A timer plugin for pytest

Project description


Porting of nose-timer plugin for pytest. A timer plugin for pytest (how much time does every test take?).

Build Status


To install the latest release from PyPI:

pip install pytest-timer

Or to install the latest development version from Git:

pip install git+git://

Or to install the latest from source:

git clone
cd pytest-timer
pip install .

You can also make a developer install if you plan on modifying the source frequently:

pip install -e .


After installing pytest-timer plugin the following report will be added:

========================== pytest-timer ==========================
[success] tests/ 0.0002s
[success] tests/ 0.0002s

How do I show only the n slowest tests?

For example, to show only the 10 slowest tests, run pytest with the --timer-top-n flag:

nosetests --with-timer --timer-top-n 10


pytest-timer is MIT Licensed library.


  • Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
  • Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).
  • Write a test which shows that the bug was fixed or that the feature works as expected.
  • Send a pull request and bug the maintainer until it gets merged and published.
  • Make sure to add yourself to the author's file in and the Contributors section below :)


Project details

Download files

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

Files for pytest-timer, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pytest-timer-0.0.3.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page