Modify

Opened 3 years ago

Closed 3 years ago

#608 closed enhancement (fixed)

Tweak test failure message from PHPUnitTask

Reported by: Tim Gerundt Owned by: mrook
Priority: major Milestone: 2.4.6
Component: phing-tasks-phpunit Version: 2.4.4
Keywords: Cc:

Description

I had the problem, that a unit test from a test case had an error and a other test was incomplete.

Unfortunately shows me phing only the last message from the incomplete test and not the more important error.

This patch fix the problem by adding the functions getLastErrorMessage(), getLastIncompleteMessage() and getLastSkippedMessage() to the PHPUnitTestRunner class. The class PHPUnitTask use this functions to return the last message depending on the return code from the PHPUnitTestRunner.

Greetings, Tim Gerundt <tim at gerundt.de>

Attachments (1)

tweak-test-failure-message-from-PHPUnitTask.patch (3.9 KB) - added by Tim Gerundt 3 years ago.
patch for ticket #608

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by Tim Gerundt

patch for ticket #608

comment:1 Changed 3 years ago by mrook

  • Milestone changed from TBD to 2.4.6

comment:2 Changed 3 years ago by mrook

(In [1093]) Refs #608 - also remember last incomplete / skipped messages (patch by Tim Gerundt)

comment:3 Changed 3 years ago by mrook

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

Add Comment

Modify Ticket

Action
as closed The owner will remain mrook.
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.