Modify

Ticket #178 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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:1 Changed 4 years ago 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 :)

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.

comment:6 Changed 4 years ago 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).

comment:7 Changed 4 years ago by mrook

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed in r308.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.