From 96bf962609506a3a0316fb6d34da5f1409bef407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= <stephane.adjemian@univ-lemans.fr> Date: Wed, 18 Nov 2015 10:14:27 +0100 Subject: [PATCH] Display the number of unit tests for each routine. --- src/run_unitary_tests.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/run_unitary_tests.m b/src/run_unitary_tests.m index 3859664..caf044d 100644 --- a/src/run_unitary_tests.m +++ b/src/run_unitary_tests.m @@ -42,11 +42,13 @@ for f=1:length(listoffiles) if is_unitary_test_available(listoffiles{f}) testcoverage(1) = testcoverage(1) + 1; [check, info] = mtest(listoffiles{f}); + r0 = sprintf('[%s/%s]',num2str(sum([info{:,3}])),num2str(size(info,1))); if check - disp(['***** Unitary tests in ' listoffiles{f} ' PASSED!'] ) + r1 = 'PASSED'; else - disp(['***** Unitary tests in ' listoffiles{f} ' FAILED!'] ) + r1 = 'FAILED'; end + disp(sprintf('***** Unitary tests in %s %s %s!', listoffiles{f}, r0, r1)); report = [report; info]; else testcoverage(2) = testcoverage(2) + 1; -- GitLab