diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-11-15 21:26:15 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-11-15 21:26:15 +0300 |
commit | eff760bd2b79f6db1de00a9d871e45ada673c8fc (patch) | |
tree | 13a051936dc60d006d19ac0c289d49f06eeac0c7 /test/test_php_basic.py | |
parent | c1fd6cb589d08a5feae5399d176e6e02599c823d (diff) | |
download | unit-eff760bd2b79f6db1de00a9d871e45ada673c8fc.tar.gz unit-eff760bd2b79f6db1de00a9d871e45ada673c8fc.tar.bz2 |
Tests: added command line arguments parsing in tests.
Added the following command line arguments:
-d, --detailed: Show detailed output for tests
Usage examples:
./test/run.py --detailed
python3 test/test_access_log.py --detailed
python3 test/test_access_log.py -d TestUnitAccessLog.test_access_log_ipv6
-l, --log: Save unit.log after the test execution
Usage examples:
./test/run.py -l
python3 test/test_access_log.py -l
python3 test/test_access_log.py --log TestUnitAccessLog.test_access_log_ipv6
Diffstat (limited to 'test/test_php_basic.py')
-rw-r--r-- | test/test_php_basic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_php_basic.py b/test/test_php_basic.py index 9e0ce822..1ea46c91 100644 --- a/test/test_php_basic.py +++ b/test/test_php_basic.py @@ -139,4 +139,4 @@ class TestUnitPHPBasic(unit.TestUnitControl): 'delete app again') if __name__ == '__main__': - unittest.main() + TestUnitPHPBasic.main() |