annotate m-toolbox/classes/tests/@ut_result_printer/printFailuresString.m @ 24:056f8e1e995e
database-connection-manager
Properly record history in fromRepository constructors
author |
Daniele Nicolodi <nicolodi@science.unitn.it> |
date |
Mon, 05 Dec 2011 16:20:06 +0100 |
parents |
f0afece42f48 |
children |
|
rev |
line source |
0
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
1 % PRINTFAILURESSTRING returns a string describing the test failures.
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
2 %
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
3 % VERSION: $Id: printFailuresString.m,v 1.1 2010/10/08 07:27:42 hewitson Exp $
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
4 %
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
5 function res = printFailuresString(urp)
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
6 res = sprintf('-------- Failures ----------\n\n');
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
7 for kk=1:numel(urp.results)
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
8 r = urp.results(kk);
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
9 if ~r.passed
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
10 res = [res sprintf('%s/%s - failed \n - %s\n', r.testClass, r.testMethod, r.message)];
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
11 end
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
12 end
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
13 res = [res sprintf('\n\n----------------------------\n')];
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
14 end |