Skip to content

Commit 456daaa

Browse files
authored
Enable nose2 test timer (#4610)
Signed-off-by: Joaquin Anton <[email protected]>
1 parent bcedcd0 commit 456daaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qa/test_template.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ topdir=$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )/..
99
source $topdir/qa/setup_test_common.sh
1010

1111
# Set runner for python tests
12-
python_test_runner_package="nose nose2"
12+
python_test_runner_package="nose nose2 nose-timer nose2-test-timer"
1313
python_test_runner="python -m nose"
14-
python_test_args="--verbose -s"
14+
python_test_args="--verbose --with-timer --timer-top-n 20 -s"
1515
python_invoke_test="${python_test_runner} ${python_test_args}"
1616

1717
# New framework for Python Tests
1818
# During the transition we run both
1919
# When all tests are ported old will be removed
2020
python_new_test_runner="python -m nose2"
21-
python_new_test_args="--verbose"
21+
python_new_test_args="--verbose --plugin=nose2_test_timer.plugin --with-timer --timer-color --timer-top-n 20"
2222
python_new_invoke_test="${python_new_test_runner} ${python_new_test_args}"
2323

2424
# Set proper CUDA version for packages, like MXNet, requiring it

0 commit comments

Comments
 (0)