Mercurial > hg > ltpda
annotate m-toolbox/classes/tests/@ut_result_printer/printFailuresString.m @ 44:409a22968d5e default
Add unit tests
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Tue, 06 Dec 2011 18:42:11 +0100 |
parents | f0afece42f48 |
children |
rev | line source |
---|---|
0 | 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 |