Ticket #178 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

printsummary doens work in PHP Unit task

Reported by: julien@duponchelle.info Assigned to: 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

11/04/07 17:32:09 changed by hans

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 :)

11/05/07 09:28:24 changed by julien@duponchelle.info

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

11/07/07 17:59:09 changed by julien@duponchelle.info

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.

11/08/07 20:37:22 changed 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.)

11/09/07 22:45:46 changed by julien@duponchelle.info

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.

11/15/07 13:37:40 changed by mrook

  • status changed from new to assigned.

The 'summary' formatter counts results over the entire test run - I will change the behavior to make it count over individual test suites (i.e. filesets in a batchtest).

11/15/07 13:46:17 changed by mrook

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in r308.


Add/Change #178 (printsummary doens work in PHP Unit task)




Action