# HG changeset patch # User cmlenz # Date 1144837393 0 # Node ID 59d770fefae1cf374d3fe9c1669f52ba95d252c2 # Parent cb5219f9d3b70cea69b89b05a4c6f68a7076b257 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. diff --git a/bitten/trac_ext/summarizers.py b/bitten/trac_ext/summarizers.py --- 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