Test running improvements: all tests can be run with tox; run.py script exits with an error code in case of failures.

This commit is contained in:
Mikhail Korobov 2013-02-26 16:03:25 +06:00
parent e09ff61b81
commit fbcc9b5c77
2 changed files with 2 additions and 0 deletions

View File

@ -91,5 +91,6 @@ if skipped:
print(skipped)
if failure:
print("***", tests(failure), "of", (success + failure), "failed.")
sys.exit(1)
else:
print(tests(success), "passed.")

View File

@ -9,3 +9,4 @@ envlist = py26, py27, py32, py33, pypy
[testenv]
commands =
{envpython} selftest.py
{envpython} Tests/run.py --installed