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