Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/NoseTestEngine.php
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | foreach ($futures as $test_path => $future) { | ||||
| throw $exc; | throw $exc; | ||||
| } | } | ||||
| } | } | ||||
| $xunit_tmp = $tmpfiles[$test_path]['xunit']; | $xunit_tmp = $tmpfiles[$test_path]['xunit']; | ||||
| $cover_tmp = $tmpfiles[$test_path]['cover']; | $cover_tmp = $tmpfiles[$test_path]['cover']; | ||||
| $this->parser = new ArcanistXUnitTestResultParser(); | $this->parser = new ArcanistXUnitTestResultParser(); | ||||
| $results[] = $this->parseTestResults($source_path, | $results[] = $this->parseTestResults( | ||||
| $source_path, | |||||
| $xunit_tmp, | $xunit_tmp, | ||||
| $cover_tmp); | $cover_tmp); | ||||
| } | } | ||||
| return array_mergev($results); | return array_mergev($results); | ||||
| } | } | ||||
| public function buildTestFuture($path, $xunit_tmp, $cover_tmp) { | public function buildTestFuture($path, $xunit_tmp, $cover_tmp) { | ||||
| $cmd_line = csprintf('nosetests --with-xunit --xunit-file=%s', | $cmd_line = csprintf( | ||||
| 'nosetests --with-xunit --xunit-file=%s', | |||||
| $xunit_tmp); | $xunit_tmp); | ||||
| if ($this->getEnableCoverage() !== false) { | if ($this->getEnableCoverage() !== false) { | ||||
| $cmd_line .= csprintf( | $cmd_line .= csprintf( | ||||
| ' --with-coverage --cover-xml --cover-xml-file=%s', | ' --with-coverage --cover-xml --cover-xml-file=%s', | ||||
| $cover_tmp); | $cover_tmp); | ||||
| } | } | ||||
| return new ExecFuture('%C %s', $cmd_line, $path); | return new ExecFuture('%C %s', $cmd_line, $path); | ||||
| ▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines | |||||