mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-12-27 18:24:56 +00:00
Improve logics in run:test method
This commit is contained in:
parent
cf95385242
commit
277ff5c803
25
RoboFile.php
25
RoboFile.php
@ -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...');
|
$methodNumber = $this->ask('Please choose the method in the test that you would want to run...');
|
||||||
$method = $methods[$methodNumber];
|
$method = $methods[$methodNumber];
|
||||||
}
|
}
|
||||||
if(isset($method))
|
|
||||||
|
if(isset($method) && $method != 'All')
|
||||||
{
|
{
|
||||||
if($method != 'All')
|
$pathToTestFile = $pathToTestFile . ':' . $method;
|
||||||
{
|
|
||||||
$this->taskCodecept()
|
|
||||||
->test($pathToTestFile . ':' . $method)
|
|
||||||
->arg('--steps')
|
|
||||||
->arg('--debug')
|
|
||||||
->run()
|
|
||||||
->stopOnFail();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->taskCodecept()
|
|
||||||
->test($pathToTestFile)
|
|
||||||
->arg('--steps')
|
|
||||||
->arg('--debug')
|
|
||||||
->run()
|
|
||||||
->stopOnFail();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->taskCodecept()
|
$this->taskCodecept()
|
||||||
->test($pathToTestFile)
|
->test($pathToTestFile)
|
||||||
->arg('--steps')
|
->arg('--steps')
|
||||||
@ -235,7 +217,6 @@ class RoboFile extends \Robo\Tasks
|
|||||||
->run()
|
->run()
|
||||||
->stopOnFail();
|
->stopOnFail();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run the specified checker tool. Valid options are phpmd, phpcs, phpcpd
|
* Run the specified checker tool. Valid options are phpmd, phpcs, phpcpd
|
||||||
|
Loading…
Reference in New Issue
Block a user