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 hashes)

Uploaded Source

Built Distribution

nose2_test_timer-0.0.3-py2.py3-none-any.whl (8.4 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