make result displayed in order

This commit is contained in:
debugtalk
2017-08-16 20:33:05 +08:00
parent 53edcca982
commit a34bb6f259
3 changed files with 5 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ To ensure the installation or upgrade is successful, you can execute command `at
```text
$ ate -V
0.3.2
0.3.3
```
Execute the command `ate -h` to view command help.

View File

@@ -1 +1 @@
__version__ = '0.3.2'
__version__ = '0.3.3'

View File

@@ -1,6 +1,7 @@
import argparse
import logging
import os
from collections import OrderedDict
import PyUnitReport
from ate import __version__
@@ -64,13 +65,13 @@ def main():
"failfast": args.failfast
}
result = PyUnitReport.HTMLTestRunner(**kwargs).run(task_suite)
results[testset_path] = {
results[testset_path] = OrderedDict({
"total": result.testsRun,
"successes": len(result.successes),
"failures": len(result.failures),
"errors": len(result.errors),
"skipped": len(result.skipped)
}
})
if len(result.successes) != result.testsRun:
subject = "FAILED"