Modify

Ticket #242 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Log incomplete and skipped tests for phpunit3

Reported by: Oleg Marchuk <kingoleg@…> Owned by: mrook
Priority: major Milestone: 2.3.1
Component: phing-tasks-phpunit Version: 2.3.0
Keywords: Cc:

Description

WIS: Phing treat of skipped and incomplete tests as failures independently of nether it is used failureproperty or errorproperty or not. But in testsuites.xml there is no statistics about those tests. So it is unable to determine what is test skipped or incomplete.

WIE:

  1. Able to notify about skipped and incompleted tests with skipeproperty and incompleteproperty.
  2. Treat of those tests as OK
  3. Log those tests results as skiped and incompleted, not as errors or failures.

I found that even next path will be better for now to simple log or skipped and incomplete tests:

--- phpunit3/XMLPHPUnit3ResultFormatter.php     2008-04-18 13:47:22.000000000 +0300
+++ phpunit3/XMLPHPUnit3ResultFormatterNew.php  2008-04-18 13:47:14.000000000 +0300
@@ -40,7 +40,7 @@
 
        function __construct()
        {
-               $this->logger = new PHPUnit_Util_Log_XML();
+               $this->logger = new PHPUnit_Util_Log_XML(null, true);
                $this->logger->setWriteDocument(false);
        }
 

Attachments

Change History

comment:1 Changed 4 years ago by mrook

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

Fixed in r376.

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.