changeset 254:27ed440902f9

Make the total number of tests really the total in the chart, and not just the number of successful tests. Fixes #63.
author cmlenz
date Wed, 05 Oct 2005 17:05:29 +0000
parents cda723f3ac31
children 42f555e1d648
files bitten/trac_ext/charts.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/trac_ext/charts.py
+++ b/bitten/trac_ext/charts.py
@@ -80,7 +80,7 @@
         req.hdf['chart.title'] = 'Unit Tests'
         req.hdf['chart.data'] = [
             [''] + ['[%s]' % item[0] for item in tests],
-            ['Total'] + [item[1] for item in tests],
+            ['Total'] + [sum(item[1:]) for item in tests],
             ['Failures'] + [item[2] for item in tests]
         ]
 
Copyright (C) 2012-2017 Edgewall Software