Skip to main content

A timer plugin for pytest

Project description

# pytest-timer Porting of [nose-timer](https://github.com/mahmoudimus/nose-timer) plugin for pytest. A timer plugin for pytest (how much time does every test take?).

[![Build Status](https://travis-ci.org/skudriashev/pytest-timer.svg?branch=master)](https://travis-ci.org/skudriashev/pytest-timer)

## Install

To install the latest release from PyPI:

pip install pytest-timer

Or to install the latest development version from Git:

pip install git+git://github.com/skudriashev/pytest-timer.git

Or to install the latest from source:

git clone https://github.com/skudriashev/pytest-timer.git cd pytest-timer pip install .

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

pip install -e .

## Usage

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

` ========================== pytest-timer ========================== [success] tests/test_plugin.py::TestPlugin::test_loaded2: 0.0002s [success] tests/test_plugin.py::TestPlugin::test_loaded: 0.0002s `

## License

pytest-timer is MIT Licensed library.

## Contribute

  • 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 setup.py and the Contributors section below :)

## Contributors

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-timer-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file pytest-timer-0.0.2.tar.gz.

File metadata

  • Download URL: pytest-timer-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

File hashes

Hashes for pytest-timer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2a8a0b04eaa954b6c9bbdfb90aa07f1e371644c7d4d2b307e525b5b6c3a0d87c
MD5 e05d8eb6405e6d50e5a1605d53690632
BLAKE2b-256 5c649ec2615949cb8cad91a0fd9e4a7d20eb5d0050a8038143e5fe6b9c547e4c

See more details on using hashes here.

Supported by

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