comparison m-toolbox/classes/tests/@ut_result_printer/printFailuresString.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % PRINTFAILURESSTRING returns a string describing the test failures.
2 %
3 % VERSION: $Id: printFailuresString.m,v 1.1 2010/10/08 07:27:42 hewitson Exp $
4 %
5 function res = printFailuresString(urp)
6 res = sprintf('-------- Failures ----------\n\n');
7 for kk=1:numel(urp.results)
8 r = urp.results(kk);
9 if ~r.passed
10 res = [res sprintf('%s/%s - failed \n - %s\n', r.testClass, r.testMethod, r.message)];
11 end
12 end
13 res = [res sprintf('\n\n----------------------------\n')];
14 end