# HG changeset patch # User cmlenz # Date 1128531929 0 # Node ID 27ed440902f9c650c26bfba8958778a64b509cf7 # Parent cda723f3ac318ad6e421ad6fdab7b2e227433557 Make the total number of tests really the total in the chart, and not just the number of successful tests. Fixes #63. diff --git a/bitten/trac_ext/charts.py b/bitten/trac_ext/charts.py --- 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] ]