Bug 979577 - Test durations are always zero in the HTML report. r=jgriffin
authorDave Hunt <dhunt@mozilla.com>
Thu, 06 Mar 2014 14:49:50 +0000
changeset 172247 97a317e7c1db5ef44199c5610ef1bb0fa243e10c
parent 172246 e7c4304d45d7d5480a379e77b3ea9b465e771f95
child 172248 0f87e8f8446ca26d13c52df45e9995ab498dd185
push id40680
push userdhunt@mozilla.com
push dateThu, 06 Mar 2014 14:50:51 +0000
treeherdermozilla-inbound@97a317e7c1db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgriffin
bugs979577
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 979577 - Test durations are always zero in the HTML report. r=jgriffin
testing/marionette/client/marionette/runner/mixins/reporting.py
--- a/testing/marionette/client/marionette/runner/mixins/reporting.py
+++ b/testing/marionette/client/marionette/runner/mixins/reporting.py
@@ -51,16 +51,17 @@ class HTMLReportingTestRunnerMixin(objec
         test_time = self.elapsedtime.total_seconds()
         test_logs = []
 
         def _extract_html_from_result(result):
             _extract_html(
                 result=result.result,
                 test_name=result.name,
                 test_class=result.test_class,
+                duration=round(result.duration, 1),
                 debug=result.debug,
                 output='\n'.join(result.output))
 
         def _extract_html_from_skipped_manifest_test(test):
             _extract_html(
                 result='skipped',
                 test_name=test['name'],
                 output=test.get('disabled'))