32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2025-01-13 16:12:57 +00:00

Improve logics in run:test method

This commit is contained in:
javier gomez 2015-11-01 16:19:12 +01:00
parent cf95385242
commit 277ff5c803

View File

@ -204,30 +204,12 @@ class RoboFile extends \Robo\Tasks
$methodNumber = $this->ask('Please choose the method in the test that you would want to run...');
$method = $methods[$methodNumber];
}
if(isset($method))
if(isset($method) && $method != 'All')
{
if($method != 'All')
{
$this->taskCodecept()
->test($pathToTestFile . ':' . $method)
->arg('--steps')
->arg('--debug')
->run()
->stopOnFail();
}
else
{
$this->taskCodecept()
->test($pathToTestFile)
->arg('--steps')
->arg('--debug')
->run()
->stopOnFail();
$pathToTestFile = $pathToTestFile . ':' . $method;
}
}
else
{
$this->taskCodecept()
->test($pathToTestFile)
->arg('--steps')
@ -235,7 +217,6 @@ class RoboFile extends \Robo\Tasks
->run()
->stopOnFail();
}
}
/**
* Run the specified checker tool. Valid options are phpmd, phpcs, phpcpd