Skip to content

Commit

Permalink
Merge pull request #113 from brianium/hhvm
Browse files Browse the repository at this point in the history
hhvm support in tests
  • Loading branch information
julianseeger committed Oct 17, 2014
2 parents baabb7f + fef5733 commit 3b812ac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ParaTest
========
[![Build Status](https://secure.travis-ci.org/brianium/paratest.png?branch=master)](https://travis-ci.org/brianium/paratest)
[![HHVM Status](http://hhvm.h4cc.de/badge/brianium/paratest.svg)](http://hhvm.h4cc.de/package/brianium/paratest)

The objective of ParaTest is to support parallel testing in a variety of PHP testing tools. Currently only PHPUnit is supported.

Expand Down
5 changes: 5 additions & 0 deletions src/ParaTest/Runners/PHPUnit/ExecutableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,9 @@ public function getCoverageFileName()

return $this->coverageFileName;
}

public function getStdout()
{
return $this->process->getOutput();
}
}
9 changes: 7 additions & 2 deletions src/ParaTest/Runners/PHPUnit/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,13 @@ private function testIsStillRunning($test)
$test->stop();
if ($this->options->stopOnFailure && $test->getExitCode() > 0)
$this->pending = array();
if (static::PHPUNIT_FATAL_ERROR === $test->getExitCode())
throw new \Exception($test->getStderr());
if (static::PHPUNIT_FATAL_ERROR === $test->getExitCode()) {
$errorOutput = $test->getStderr();
if (!$errorOutput) {
$errorOutput = $test->getStdout();
}
throw new \Exception($errorOutput);
}
$this->printer->printFeedback($test);
if ($this->hasCoverage()) {
$this->addCoverage($test);
Expand Down

0 comments on commit 3b812ac

Please sign in to comment.