Ticket #254 (closed enhancement: fixed)
Add extra debug resultformatter to the simpletest task
| Reported by: | tarjei@… | Owned by: | hans |
|---|---|---|---|
| Priority: | major | Milestone: | 2.4.0RC1 |
| Component: | phing-tasks-ext | Version: | devel |
| Keywords: | simpletest | Cc: |
Description
When I use the simpletest task it often irritates me that it doesn't report which testcase and -method it runs before after the test case is finished. If php segfaults or explodes in another way, I got no way to track which testcase failed.
I have therefore created the following patch that prints out the testcase name before it runs and also prints a list of failed testcases when the task is finished.
The patch is against current trunk, but I have only tested it with 2.3.0.
Attachments
Change History
comment:1 in reply to: ↑ description Changed 23 months ago by anonymous
comment:2 Changed 22 months ago by anonymous
I think I have added the complete patch in those two attachments. Usage:
<simpletest haltonerror="yes" haltonfailure="yes">
<formatter type="debug" usefile="false" />
<fileset dir="${project.basedir}/configreader/tests">
...
comment:4 Changed 22 months ago by mrook
- Status changed from new to closed
- Resolution set to fixed
This bug has been fixed in the SVN tree, revision r428.
Thank you for the report, and for helping us make Phing better!
comment:5 Changed 22 months ago by anonymous
Getting errors:
[wrapped: Formatter 'debug' not implemented]


Replying to tarjei@nu.no:
Where's the attachment :( That's something I'm interested in and I'd rather use your patch than re-create it.