mirror of
https://github.com/yweber/lodel2.git
synced 2025-10-25 18:29:02 +02:00
49 lines
1.2 KiB
Bash
Executable file
49 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Usage : ./runtest [OPTIONS] [test_module[.test_class][ test_module2[.test_class2]...]
|
|
#########
|
|
#
|
|
# Options list :
|
|
################
|
|
#
|
|
# -b, --buffer
|
|
#
|
|
# The standard output and standard error streams are buffered during the test run. Output during a passing test is discarded. Output is echoed normally on test fail or error and is added to the failure messages.
|
|
#
|
|
# -c, --catch
|
|
#
|
|
# Control-C during the test run waits for the current test to end and then reports all the results so far. A second control-C raises the normal KeyboardInterrupt exception.
|
|
#
|
|
#
|
|
# -f, --failfast
|
|
#
|
|
# Stop the test run on the first error or failure.
|
|
#
|
|
# -h, --help
|
|
#
|
|
# Get some help
|
|
#
|
|
# -v, --verbose
|
|
#
|
|
# higher verbosity
|
|
#
|
|
# Examples :
|
|
############
|
|
#
|
|
# Running all discoverables tests :
|
|
# ./runtest
|
|
#
|
|
# Running only Em test about component object (only tests about the __init__ and modify_rank methods) with higher verbosity and failfast :
|
|
# ./runtest -fv EditorialModel.test.test_component.TestInit EditorialModel.test.test_component.TestModifyRank
|
|
#
|
|
#
|
|
# Running only Em tests
|
|
# ./runtest discover EditorialModel
|
|
#
|
|
# More details :
|
|
################
|
|
#
|
|
# https://docs.python.org/3.4/library/unittest.html
|
|
#
|
|
|
|
python3 -W ignore -m unittest $@
|