Codeception improvement (+ docs)

This commit is contained in:
Dmitry Khomutov 2017-02-09 22:03:53 +07:00
commit 72579e769f
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
2 changed files with 23 additions and 5 deletions

View file

@ -64,11 +64,13 @@ class Codeception extends Plugin implements ZeroConfigPluginInterface
} else {
$this->ymlConfigFile = $options['config'];
}
if (isset($options['args'])) {
$this->args = (string) $options['args'];
}
if (isset($options['path'])) {
$this->path = $options['path'];
array_unshift($this->path, $options['path']);
}
}
@ -146,7 +148,7 @@ class Codeception extends Plugin implements ZeroConfigPluginInterface
if (!file_exists($outputPath . 'report.xml')) {
foreach ($this->path as $path) {
$outputPath = $this->builder->buildPath . $path . '/';
$outputPath = $this->builder->buildPath . rtrim($path, '/\\') . '/';
if (file_exists($outputPath . 'report.xml')) {
break;
}