Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-11-11 03:13:25 +0300
committerThomas Steur <thomas.steur@googlemail.com>2014-11-11 03:13:50 +0300
commit42bec950198acf1ed1d1ab857be0b5b8b3160589 (patch)
treeba2a120eb49c2595db481f7c348360814f544e21 /plugins/TestRunner/Commands
parent313706f50ac6f1bd13a5eb22d439587dc5b587d2 (diff)
it should be possible to combine a file with a testsuite
Diffstat (limited to 'plugins/TestRunner/Commands')
-rw-r--r--plugins/TestRunner/Commands/TestsRun.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/TestRunner/Commands/TestsRun.php b/plugins/TestRunner/Commands/TestsRun.php
index 2f262280cb..777536398f 100644
--- a/plugins/TestRunner/Commands/TestsRun.php
+++ b/plugins/TestRunner/Commands/TestsRun.php
@@ -83,23 +83,28 @@ class TestsRun extends ConsoleCommand
putenv('PIWIK_USE_XHPROF=1');
}
+ $suite = $this->getTestsuite($input);
$testFile = $input->getOption('file');
+
if (!empty($testFile)) {
- $this->executeTestFile($testFile, $options, $command, $output);
+ $this->executeTestFile($suite, $testFile, $options, $command, $output);
} else {
- $suite = $this->getTestsuite($input);
$this->executeTestGroups($suite, $groups, $options, $command, $output);
}
return $this->returnVar;
}
- private function executeTestFile($testFile, $options, $command, OutputInterface $output)
+ private function executeTestFile($suite, $testFile, $options, $command, OutputInterface $output)
{
if ('/' !== substr($testFile, 0, 1)) {
$testFile = '../../' . $testFile;
}
+ if (!empty($suite)) {
+ $options .= ' --testsuite ' . $suite;
+ }
+
$params = $options . " " . $testFile;
$this->executeTestRun($command, $params, $output);
}