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']);
     }
 }
Beispiel #2
0
 public function afterStep(\Codeception\Event\Step $e)
 {
     foreach (\Codeception\SuiteManager::$modules as $module) {
         $module->_afterStep($e->getStep(), $e->getTest());
     }
 }
Beispiel #3
0
 public function beforeStep(\Codeception\Event\Step $e)
 {
     if (!$this->steps or !$e->getTest() instanceof ScenarioDriven) {
         return;
     }
     $this->output->writeln("* " . $e->getStep());
 }