]> gitweb.michael.orlitzky.com - octave.git/blobdiff - run-tests.m
Output totals at the end of the test suite.
[octave.git] / 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);