mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-12-26 01:57:30 +00:00
Improve logics in run:test method
This commit is contained in:
parent
cf95385242
commit
277ff5c803
37
RoboFile.php
37
RoboFile.php
@ -204,37 +204,18 @@ 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($method != 'All')
|
||||
{
|
||||
$this->taskCodecept()
|
||||
->test($pathToTestFile . ':' . $method)
|
||||
->arg('--steps')
|
||||
->arg('--debug')
|
||||
->run()
|
||||
->stopOnFail();
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->taskCodecept()
|
||||
->test($pathToTestFile)
|
||||
->arg('--steps')
|
||||
->arg('--debug')
|
||||
->run()
|
||||
->stopOnFail();
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
if(isset($method) && $method != 'All')
|
||||
{
|
||||
$this->taskCodecept()
|
||||
->test($pathToTestFile)
|
||||
->arg('--steps')
|
||||
->arg('--debug')
|
||||
->run()
|
||||
->stopOnFail();
|
||||
$pathToTestFile = $pathToTestFile . ':' . $method;
|
||||
}
|
||||
|
||||
$this->taskCodecept()
|
||||
->test($pathToTestFile)
|
||||
->arg('--steps')
|
||||
->arg('--debug')
|
||||
->run()
|
||||
->stopOnFail();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user