Ticket #242 (new defect)

Opened 1 month ago

Log incomplete and skipped tests for phpunit3

Reported by: Oleg Marchuk <kingoleg@mail.ru> Assigned to: 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


Add/Change #242 (Log incomplete and skipped tests for phpunit3)