public function beforeStep(\Codeception\Event\Step $e)
 {
     if (!$this->module) {
         return;
     }
     $this->module->_setHeader('X-Codeception-CodeCoverage', $e->getTest()->getName());
     $this->module->_setHeader('X-Codeception-CodeCoverage-Suite', $this->suite_name);
     if ($this->settings['remote_config']) {
         $this->module->_setHeader('X-Codeception-CodeCoverage-Config', $this->settings['remote_config']);
     }
 }
Example #2
0
 public function afterStep(\Codeception\Event\Step $e)
 {
     foreach (\Codeception\SuiteManager::$modules as $module) {
         $module->_afterStep($e->getStep(), $e->getTest());
     }
 }
Example #3
0
 public function afterStep(\Codeception\Event\Step $e)
 {
     if (!$this->debug) {
         return;
     }
     if ($output = $e->getStep()->pullDebugOutput()) {
         $this->output->debug($output);
     }
 }
Example #4
0
 public function beforeStep(\Codeception\Event\Step $e)
 {
     $this->logger->info($e->getStep()->getHumanizedAction());
 }
Example #5
0
 public function beforeStep(\Codeception\Event\Step $e)
 {
     if (!$this->steps or !$e->getTest() instanceof ScenarioDriven) {
         return;
     }
     $this->output->writeln("* " . $e->getStep());
 }
Example #6
0
 public function afterStep(\Codeception\Event\Step $e)
 {
     if (!$this->debug) {
         return;
     }
     $step = $e->getStep();
     $action = $step->getAction();
     $activeModule = \Codeception\SuiteManager::$modules[\Codeception\SuiteManager::$actions[$action]];
     if ($output = $activeModule->_getDebugOutput()) {
         $this->output->debug($output);
     }
 }