Fixing Codeception plugin PHPCS errors.
This commit is contained in:
parent
aaf93ddd7d
commit
b171a10759
|
@ -130,6 +130,7 @@ class Codeception implements \PHPCI\Plugin, \PHPCI\ZeroConfigPlugin
|
||||||
}
|
}
|
||||||
|
|
||||||
$cmd = 'cd "%s" && ' . $codecept . ' run -c "%s" --xml ' . $this->args;
|
$cmd = 'cd "%s" && ' . $codecept . ' run -c "%s" --xml ' . $this->args;
|
||||||
|
|
||||||
if (IS_WIN) {
|
if (IS_WIN) {
|
||||||
$cmd = 'cd /d "%s" && ' . $codecept . ' run -c "%s" --xml ' . $this->args;
|
$cmd = 'cd /d "%s" && ' . $codecept . ' run -c "%s" --xml ' . $this->args;
|
||||||
}
|
}
|
||||||
|
@ -137,14 +138,12 @@ class Codeception implements \PHPCI\Plugin, \PHPCI\ZeroConfigPlugin
|
||||||
$configPath = $this->phpci->buildPath . $configPath;
|
$configPath = $this->phpci->buildPath . $configPath;
|
||||||
$success = $this->phpci->executeCommand($cmd, $this->phpci->buildPath, $configPath);
|
$success = $this->phpci->executeCommand($cmd, $this->phpci->buildPath, $configPath);
|
||||||
|
|
||||||
|
$this->phpci->log(
|
||||||
|
'Codeception XML path: '. $this->phpci->buildPath . $this->path . 'report.xml',
|
||||||
|
Loglevel::DEBUG
|
||||||
|
);
|
||||||
|
|
||||||
$this->phpci->log(
|
$xml = file_get_contents($this->phpci->buildPath . $this->path . 'report.xml', false);
|
||||||
'Codeception XML path: '. $this->phpci->buildPath . $this->path . 'report.xml',
|
|
||||||
Loglevel::DEBUG
|
|
||||||
);
|
|
||||||
$xml = file_get_contents($this->phpci->buildPath . $this->path . 'report.xml', false);
|
|
||||||
|
|
||||||
|
|
||||||
$parser = new Parser($this->phpci, $xml);
|
$parser = new Parser($this->phpci, $xml);
|
||||||
$output = $parser->parse();
|
$output = $parser->parse();
|
||||||
|
|
||||||
|
@ -157,7 +156,6 @@ class Codeception implements \PHPCI\Plugin, \PHPCI\ZeroConfigPlugin
|
||||||
$this->build->storeMeta('codeception-meta', $meta);
|
$this->build->storeMeta('codeception-meta', $meta);
|
||||||
$this->build->storeMeta('codeception-data', $output);
|
$this->build->storeMeta('codeception-data', $output);
|
||||||
$this->build->storeMeta('codeception-errors', $parser->getTotalFailures());
|
$this->build->storeMeta('codeception-errors', $parser->getTotalFailures());
|
||||||
|
|
||||||
$this->phpci->logExecOutput(true);
|
$this->phpci->logExecOutput(true);
|
||||||
|
|
||||||
return $success;
|
return $success;
|
||||||
|
|
Loading…
Reference in a new issue