]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Pass correct filename into PHPUnitTestEngine coverage
authorEric Stern <firehed@gmail.com>
Sat, 27 Jul 2013 02:09:09 +0000 (19:09 -0700)
committerepriestley <git@epriestley.com>
Sat, 27 Jul 2013 02:10:17 +0000 (19:10 -0700)
Summary: The test result parser in PhpunitTestEngine was receiving $test_path from the previous loop instead of $path from the current one. The variable isn't actually used in the PhpunitResultParser object (it exists for strict compatibility with the parent class) so it didn't cause any problems, but who knows if that could change in the future

Test Plan: Review diff. No changes to the output of running 'arc unit' when using the Phpunit engine, as expected

Reviewers: epriestley

CC: aran, epriestley, aurelijus, chad
Differential Revision: https://secure.phabricator.com/D6587

src/unit/engine/PhpunitTestEngine.php

index a787298201e4d10a83dff41388c59b4059f54c56..a4f05c38bb2b89e061a38df6a19b6896fe75a335 100644 (file)
@@ -85,7 +85,8 @@ final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine {
 
       list($err, $stdout, $stderr) = $future->resolve();
 
-      $results[] = $this->parseTestResults($test_path,
+      $results[] = $this->parseTestResults(
+        $test,
         $tmpfiles[$test]['json'],
         $tmpfiles[$test]['clover']);
     }