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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for nose2_test_timer-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d096a386cc2f35c9677998eb6d237b4110dc47e4dcbd7bd13b86adc539436769 |
|
MD5 | 2070b3da363744762753b76c6c65d069 |
|
BLAKE2b-256 | ebd738a6e5f3d2fb80256c941510c862cf7feb8399e6a6a9d0f292cd4b6bf536 |