diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-11-01 09:02:24 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-01 09:02:24 +0000 |
| commit | 08f9822b72932bafa4aa6327f601e1901e2e0003 (patch) | |
| tree | 05e4c8dbd24c77e7a994df4cff4f6c6063f0dd9b /modules/gallery_unit_test/views | |
| parent | f8b4c669063b49acd658b1d85194632b57350e68 (diff) | |
Exclude demo tests
Diffstat (limited to 'modules/gallery_unit_test/views')
| -rw-r--r-- | modules/gallery_unit_test/views/kohana_unit_test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery_unit_test/views/kohana_unit_test.php b/modules/gallery_unit_test/views/kohana_unit_test.php index 2201245c..c5ca6f30 100644 --- a/modules/gallery_unit_test/views/kohana_unit_test.php +++ b/modules/gallery_unit_test/views/kohana_unit_test.php @@ -51,8 +51,10 @@ foreach ($results as $class => $methods) { } printf(">> TOTAL\t%s: %.2f%%\t%s: %d\t%s: %d\t%s: %d\t%s: %d\n", - Kohana::lang("unit_test.score"), 100 * ($totals["passed"] / $totals["total"]), + Kohana::lang("unit_test.score"), + ($totals["total"] ? 100 * ($totals["passed"] / $totals["total"]) : 0), Kohana::lang("unit_test.total"), $totals["total"], Kohana::lang("unit_test.passed"), $totals["passed"], Kohana::lang("unit_test.failed"), $totals["failed"], Kohana::lang("unit_test.errors"), $totals["errors"]); + |
