Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/PytestTestEngine.php
| Show All 11 Lines | public function run() { | ||||
| $junit_tmp = new TempFile(); | $junit_tmp = new TempFile(); | ||||
| $cover_tmp = new TempFile(); | $cover_tmp = new TempFile(); | ||||
| $future = $this->buildTestFuture($junit_tmp, $cover_tmp); | $future = $this->buildTestFuture($junit_tmp, $cover_tmp); | ||||
| list($err, $stdout, $stderr) = $future->resolve(); | list($err, $stdout, $stderr) = $future->resolve(); | ||||
| if (!Filesystem::pathExists($junit_tmp)) { | if (!Filesystem::pathExists($junit_tmp)) { | ||||
| throw new CommandException( | throw new CommandException( | ||||
| "Command failed with error #{$err}!", | pht('Command failed with error #%s!', $err), | ||||
| $future->getCommand(), | $future->getCommand(), | ||||
| $err, | $err, | ||||
| $stdout, | $stdout, | ||||
| $stderr); | $stderr); | ||||
| } | } | ||||
| $future = new ExecFuture('coverage xml -o %s', $cover_tmp); | $future = new ExecFuture('coverage xml -o %s', $cover_tmp); | ||||
| $future->setCWD($this->project_root); | $future->setCWD($this->project_root); | ||||
| ▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines | |||||