Ticket #178 (closed defect: fixed)
printsummary doens work in PHP Unit task
| Reported by: | julien@… | Owned by: | mrook |
|---|---|---|---|
| Priority: | major | Milestone: | 2.3.1 |
| Component: | phing-tasks-phpunit | Version: | 2.3.0 |
| Keywords: | Cc: |
Description
Since i update to phing 2.3.0 printsumarry option in phpunit task doesn't work.
Attachments
Change History
comment:2 Changed 4 years ago by julien@…
No error just a line with status of all tests.
[phpunit] Tests run: 247, Failures: 0, Errors: 0, Incomplete: 0, Skipped: 13, Time elapsed: 42.41734 s
comment:3 Changed 4 years ago by julien@…
I don't know if it's related but at ligne 43 of classes/phing/tasks/ext/phpunit/phpunit3/SummaryPHPUnit3ResultFormatter.php you use a variable which is never declared.
comment:4 Changed 4 years ago by hans
That undeclared var is fixed in r301, but don't think that is the issue.
Maybe I never used the summary previously, but what did it used to generate that it does not generate now? I do see the status line when I run unit tests (I thought that was the summary.)
comment:5 Changed 4 years ago by julien@…
Something like this:
[phpunit] Tests run: 42, Failures: 0, Errors: 0, Incomplete: 0, Skipped: 13, Time elapsed: 42.41734 s [phpunit] Tests run: 10, Failures: 0, Errors: 0, Incomplete: 0, Skipped: 13, Time elapsed: 42.41734 s [phpunit] Tests run: 5, Failures: 0, Errors: 0, Incomplete: 0, Skipped: 13, Time elapsed: 42.41734 s
For each test file you got a line. It's usefull with a big project otherwise you can think that you have a problem.

Does it generate an error or simply not print a summary? I know that Michiel changed the behavior of the summary for this release, but I don't think it's meant to not be showing up at all :)