Skip to main content

A timer plugin for nose2

Project description

# nose2-test-timer

A timer plugin for nose2 to benchmark time that each unit test take

Ported from nose-timer. Functionality should be mostly but not yet entirely the same

### Install

To install the latest development version from Git:

pip install git+https://github.com/kaichiachen/nose2-test-timer.git

Or to install the latest from source:

git clone https://github.com/kaichiachen/nose2-test-timer.git
cd nose2_test_timer
pip install .

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

pip install -e .

### Usage

example:

nose2 -v -s ./example --plugin=nose2_test_timer.plugin --with-timer --timer-json-file './result.json' --timer-color --timer-top-n 20

![](./images/colorexample.png)

usage:

usage: nose2 [--with-timer] [--timer-top-n TIMER_TOP_N]
         [--timer-json-file TIMER_JSON_FILE] [--timer-ok TIMER_OK]
         [-W TIMER_WARNING] [--timer-color]
         [--timer-threshold TIMER_THRESHOLD]
         [--timer-typefilter TIMER_TYPEFILTER]

### License

nose2-test-timer is MIT Licensed library.

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

nose2-test-timer-0.0.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

nose2_test_timer-0.0.3-py2.py3-none-any.whl (8.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nose2-test-timer-0.0.3.tar.gz.

File metadata

  • Download URL: nose2-test-timer-0.0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.0 requests-toolbelt/0.9.1 urllib3/1.26.2 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8

File hashes

Hashes for nose2-test-timer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7500fa0746acd6dfe9626e58320326dc137b1297de1d545f1807ddbb0f9d5319
MD5 75ca944c0bdbf1c16d096f153d69664a
BLAKE2b-256 0553874b66778185bf44f76ff7a52bb392f382b9be83043f98e9b2443b088177

See more details on using hashes here.

File details

Details for the file nose2_test_timer-0.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: nose2_test_timer-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.0 requests-toolbelt/0.9.1 urllib3/1.26.2 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8

File hashes

Hashes for nose2_test_timer-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d096a386cc2f35c9677998eb6d237b4110dc47e4dcbd7bd13b86adc539436769
MD5 2070b3da363744762753b76c6c65d069
BLAKE2b-256 ebd738a6e5f3d2fb80256c941510c862cf7feb8399e6a6a9d0f292cd4b6bf536

See more details on using hashes here.

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