@@ -28,7 +28,7 @@ class TestsRun extends ConsoleCommand
...
@@ -28,7 +28,7 @@ class TestsRun extends ConsoleCommand
{
{
$this->setName('tests:run');
$this->setName('tests:run');
$this->setDescription('Run Piwik PHPUnit tests one testsuite after the other');
$this->setDescription('Run Piwik PHPUnit tests one testsuite after the other');
$this->addArgument('magic',InputArgument::OPTIONAL,'Eg a path to a file or directory, the name of a testsuite, the name of a plugin, ... We will try to detect what you meant.','');
$this->addArgument('variables',InputArgument::IS_ARRAY,'Eg a path to a file or directory, the name of a testsuite, the name of a plugin, ... We will try to detect what you meant. You can define multiple values',array());
$this->addOption('options','o',InputOption::VALUE_OPTIONAL,'All options will be forwarded to phpunit','');
$this->addOption('options','o',InputOption::VALUE_OPTIONAL,'All options will be forwarded to phpunit','');
$this->addOption('xhprof',null,InputOption::VALUE_NONE,'Profile using xhprof.');
$this->addOption('xhprof',null,InputOption::VALUE_NONE,'Profile using xhprof.');
$this->addOption('group',null,InputOption::VALUE_REQUIRED,'Run only a specific test group. Separate multiple groups by comma, for instance core,plugins','');
$this->addOption('group',null,InputOption::VALUE_REQUIRED,'Run only a specific test group. Separate multiple groups by comma, for instance core,plugins','');
...
@@ -40,7 +40,7 @@ class TestsRun extends ConsoleCommand
...
@@ -40,7 +40,7 @@ class TestsRun extends ConsoleCommand
{
{
$options=$input->getOption('options');
$options=$input->getOption('options');
$groups=$input->getOption('group');
$groups=$input->getOption('group');
$magic=$input->getArgument('magic');
$magics=$input->getArgument('variables');
$groups=$this->getGroupsFromString($groups);
$groups=$this->getGroupsFromString($groups);
...
@@ -88,15 +88,23 @@ class TestsRun extends ConsoleCommand
...
@@ -88,15 +88,23 @@ class TestsRun extends ConsoleCommand