Ignore:
Timestamp:
10/28/08 20:44:55 (22 months ago)
Author:
mrook
Message:

Refs #254 - add debug result formatter to simpletest task

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/classes/phing/tasks/ext/simpletest/SimpleTestTask.php

    r325 r428  
    4242        private $printsummary = false; 
    4343        private $testfailed = false; 
     44        private $debug = false; 
    4445 
    4546        /** 
     
    6061                require_once 'simpletest/test_case.php'; 
    6162                require_once 'phing/tasks/ext/simpletest/SimpleTestCountResultFormatter.php'; 
     63                require_once 'phing/tasks/ext/simpletest/SimpleTestDebugResultFormatter.php'; 
    6264                require_once 'phing/tasks/ext/simpletest/SimpleTestFormatterElement.php'; 
    6365        } 
     
    8789                $this->printsummary = $printsummary; 
    8890        } 
     91 
     92        public function setDebug($debug) 
     93        { 
     94                $this->debug = $debug; 
     95        } 
     96 
     97        public function getDebug() 
     98        { 
     99                return $this->debug; 
     100        }        
    89101         
    90102        /** 
     
    182194                $this->execute($group); 
    183195                 
     196                if ($this->testfailed && $this->formatters[0]->getFormatter() instanceof SimpleTestDebugResultFormatter ) 
     197                { 
     198                        $this->getDefaultOutput()->write("Failed tests: "); 
     199                        $this->formatters[0]->getFormatter()->printFailingTests(); 
     200                } 
     201                 
    184202                if ($this->testfailed) 
    185203                { 
Note: See TracChangeset for help on using the changeset viewer.