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
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.