Output totals at the end of the test suite.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 22 Mar 2013 04:58:28 +0000 (00:58 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 22 Mar 2013 04:58:28 +0000 (00:58 -0400)
run-tests.m

index 08b0f765f2609c8ff02aca3bcab7ec28f33b62be..0bf037f4e207c3c3645fa44881fc9546c1504baf 100755 (executable)
@@ -6,9 +6,16 @@
 
 addpath('./unit_test');
 
+global unittest_results;
+
 unit_init(1, {});
 
 test_files = glob('tests/*.m');
 
 ## Source every file that matches the glob above.
 cellfun(@source, test_files);
+
+fprintf('\n');
+fprintf('Total tests attempted: %d\n', unittest_results.total);
+fprintf('Total tests passed: %d\n', unittest_results.pass);
+fprintf('Total tests failed: %d\n', unittest_results.fail);