From: Michael Orlitzky Date: Fri, 22 Mar 2013 04:58:28 +0000 (-0400) Subject: Output totals at the end of the test suite. X-Git-Url: http://gitweb.michael.orlitzky.com/?p=octave.git;a=commitdiff_plain;h=577c70130e788e7e03520277fecb44a9b68fa463;ds=sidebyside Output totals at the end of the test suite. --- diff --git a/run-tests.m b/run-tests.m index 08b0f76..0bf037f 100755 --- a/run-tests.m +++ b/run-tests.m @@ -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);