[Dev] Re: [commits] (dan)  change logger to list tests that
fail in FunctionalSuite
heikki at osafoundation.org
Mon Feb 27 11:12:36 PST 2006
commits at osafoundation.org wrote:
> 9632 <http://viewcvs.osafoundation.org/chandler?view=rev&rev=9632>
> + #print names of failed tests
> + if status == "FAILED":
> + print "Failed tests:"
> + for tc in self.testcaseList:
> + if tc == "FAIL":
> + print tc + ' FAILED'
Failure messages to are going into the Tinderbox log should ideally be
formatted so that the Tinderbox error parser notices they are errors.
Note that I am now talking about the special parser that constructs the
log page you see when you click on Tbox to view the log (either full or
partial). The job of the error parser on that page is to create
hypertext links at the top of the file that you can simply click to
quickly find the error line.
I haven't checked all of the things that parser catches, but I know
'failed' is one keyword it captures. I think 'error' also works.
Best would be to make the failure message where the actual error
information is visible. The above case just lists tests that failed, but
if that is all we've got then it would be nice to make a small change here:
+ print tc + ' failed'
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.osafoundation.org/pipermail/chandler-dev/attachments/20060227/2953c036/signature.pgp
More information about the Dev