From fcf9093f269b924555780e60fe05e4eff9de1cf4 Mon Sep 17 00:00:00 2001 From: Clément Pit--Claudel Date: Wed, 19 Aug 2015 10:11:08 -0700 Subject: runTests: Include failed tests in mean completion time --- Test/runTests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Test/runTests.py') 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))] -- cgit v1.2.3