changeset 342:59d770fefae1

The unit test and test coverage summarizers weren't restricting their report input to the given step. Fixes #94. Thanks to Walter Bell for the patch.
author cmlenz
date Wed, 12 Apr 2006 10:23:13 +0000
parents cb5219f9d3b7
children 90c79fabe6f1
files bitten/trac_ext/summarizers.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/trac_ext/summarizers.py
+++ b/bitten/trac_ext/summarizers.py
@@ -44,8 +44,8 @@
  LEFT OUTER JOIN bitten_report_item AS item_error
   ON (item_error.report=report.id AND item_error.item=item_fixture.item AND
       item_error.name='status' AND item_error.value='error')
-WHERE category='test' AND build=%s
-GROUP BY file, fixture ORDER BY fixture""", (build.id,))
+WHERE category='test' AND build=%s AND step=%s
+GROUP BY file, fixture ORDER BY fixture""", (build.id, step.name))
 
         data = []
         total_success, total_failure, total_error = 0, 0, 0
@@ -92,8 +92,8 @@
   ON (item_percentage.report=report.id AND
       item_percentage.item=item_name.item AND
       item_percentage.name='percentage')
-WHERE category='coverage' AND build=%s
-GROUP BY file, unit ORDER BY unit""", (build.id,))
+WHERE category='coverage' AND build=%s AND step=%s
+GROUP BY file, unit ORDER BY unit""", (build.id, step.name))
 
         data = []
         total_loc, total_cov = 0, 0
Copyright (C) 2012-2017 Edgewall Software