summaryrefslogtreecommitdiff
path: root/Test/runTests.py
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-19 10:11:08 -0700
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-19 10:11:08 -0700
commitfcf9093f269b924555780e60fe05e4eff9de1cf4 (patch)
tree2acc17594cdde0cde72eed698a2afb95835855d8 /Test/runTests.py
parent6a24e8c90ac467678dbf9aeb0d16c3d36c2dcf44 (diff)
runTests: Include failed tests in mean completion time
Diffstat (limited to 'Test/runTests.py')
-rw-r--r--Test/runTests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Test/runTests.py b/Test/runTests.py
index 9f4fa5a5..eae29012 100644
--- a/Test/runTests.py
+++ b/Test/runTests.py
@@ -148,12 +148,12 @@ class Test:
@staticmethod
def build_report(tests, name):
- time = strftime("%Y-%m-%d-%H-%M-%S")
+ now = strftime("%Y-%m-%d-%H-%M-%S")
if name:
directory, fname = os.path.split(name)
- name = os.path.join(directory, time + "--" + fname)
+ name = os.path.join(directory, now + "--" + fname)
else:
- name = time
+ name = now
with open(name + ".csv", mode='w', newline='') as writer:
csv_writer = csv.DictWriter(writer, Test.COLUMNS, dialect='excel')
@@ -172,7 +172,7 @@ class Test:
@staticmethod
def mean_duration(results, margin):
durations = sorted(result.duration for result in results
- if result.status == TestStatus.PASSED)
+ if result.status in (TestStatus.PASSED, TestStatus.FAILED))
if len(durations) >= 15:
lq = durations[floor(0.25 * len(durations))]
hq = durations[ceil(0.85 * len(durations))]