Skip to content

Commit

Permalink
[TESTS] debug output tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Nov 6, 2015
1 parent 2b323c4 commit 9276e5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 10 additions & 1 deletion tests/Elasticsearch/Tests/YamlRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class YamlRunnerTest extends \PHPUnit_Framework_TestCase
/** @var string */
public static $esVersion;

private static $testCounter = 0;

/**
* @return mixed
*/
Expand Down Expand Up @@ -213,8 +215,12 @@ public function testYaml()
$files = func_get_args();

foreach ($files as $testFile) {
echo "$testFile\n";
$counter = YamlRunnerTest::$testCounter;

echo "--------------------------------------------------------------------------\n";
echo "#$counter : $testFile\n";
ob_flush();
YamlRunnerTest::$testCounter += 1;

if ($this->skipTest($testFile) === true) {
$this->markTestSkipped('Skipped due to skip-list');
Expand Down Expand Up @@ -264,6 +270,9 @@ public function testYaml()
}
}
$this->executeTestCase($doc['values'], $testFile, false);

echo "Success\n\n";
ob_flush();
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions util/RestSpecRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,3 @@
$hash = $_SERVER['TEST_BUILD_REF'];
echo "Checkout yaml tests (hash: $hash)\n";
$git->checkout($hash, array('force' => true, 'quiet' => true));

ob_flush();
ob_end_flush();

0 comments on commit 9276e5e

Please sign in to comment.