Page MenuHomePhabricator

D13892.diff
No OneTemporary

D13892.diff

diff --git a/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php b/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php
--- a/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php
+++ b/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php
@@ -108,6 +108,7 @@
$test_engine->setPaths($paths);
}
+ $test_engine->setConfigurationManager($this->getConfigurationManager());
$built_test_engines[] = $test_engine;
}
diff --git a/src/unit/engine/PhpunitTestEngine.php b/src/unit/engine/PhpunitTestEngine.php
--- a/src/unit/engine/PhpunitTestEngine.php
+++ b/src/unit/engine/PhpunitTestEngine.php
@@ -10,6 +10,10 @@
private $affectedTests;
private $projectRoot;
+ public function getEngineConfigurationName() {
+ return 'phpunit';
+ }
+
public function run() {
$this->projectRoot = $this->getWorkingCopy()->getProjectRoot();
$this->affectedTests = array();
diff --git a/src/unit/engine/__tests__/PhpunitTestEngineTestCase.php b/src/unit/engine/__tests__/PhpunitTestEngineTestCase.php
--- a/src/unit/engine/__tests__/PhpunitTestEngineTestCase.php
+++ b/src/unit/engine/__tests__/PhpunitTestEngineTestCase.php
@@ -5,6 +5,11 @@
*/
final class PhpunitTestEngineTestCase extends PhutilTestCase {
+ public function testGetEngineConfigurationName() {
+ $engine = new PhpunitTestEngine();
+ $this->assertEqual('phpunit', $engine->getEngineConfigurationName());
+ }
+
public function testSearchLocations() {
$path = '/path/to/some/file/X.php';

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 14, 11:41 PM (2 d, 19 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6728705
Default Alt Text
D13892.diff (1 KB)

Event Timeline