public function afterSuite(\Codeception\Event\Suite $e)
 {
     if (!$this->module or !$this->remote) {
         return;
     }
     $suite = $e->getSuite()->getName();
     if ($this->options['xml']) {
         $this->retrieveAndPrintXml($suite);
     }
     if ($this->options['html']) {
         $this->retrieveAndPrintHtml($suite);
     }
 }
Example #2
0
 public function beforeSuite(\Codeception\Event\Suite $e)
 {
     $this->output->writeln("");
     $this->output->writeln("Suite (({$e->getSuite()->getName()})) started");
 }
Example #3
0
 public function beforeSuite(\Codeception\Event\Suite $e)
 {
     $suite = str_replace('\\', '_', $e->getSuite()->getName());
     $this->logHandler = new \Monolog\Handler\RotatingFileHandler($this->path . $suite, $this->max_files);
 }
Example #4
0
 /**
  * @param \Codeception\Event\Suite $e
  */
 protected function buildResultsTable(\Codeception\Event\Suite $e)
 {
     $this->columns = array(40, 5);
     foreach ($e->getSuite()->tests() as $test) {
         if ($test instanceof TestCase) {
             $this->columns[0] = max($this->columns[0], 20 + strlen($test->getFeature()) + strlen($test->getFileName()));
             continue;
         }
         if ($test instanceof \PHPUnit_Framework_TestSuite_DataProvider) {
             $test = $test->testAt(0);
             $output_length = $test instanceof \Codeception\TestCase ? strlen($test->getFeature()) + strlen($test->getFileName()) : $test->toString();
             $this->columns[0] = max($this->columns[0], 15 + $output_length);
             continue;
         }
         $this->columns[0] = max($this->columns[0], 10 + strlen($test->toString()));
     }
 }
 public function tearDownAfterClass(Suite $e)
 {
     $this->processClassHooks($e->getSuite()->tests(), 'tearDownAfterClass');
 }