Merge pull request #118 from Kubik-Rubik/build_codeception_windows
Fix for Windows to make sure to run the build command...
This commit is contained in:
commit
7603c82c0f
|
@ -58,7 +58,8 @@ class RoboFile extends \Robo\Tasks
|
|||
|
||||
$this->runSelenium();
|
||||
|
||||
$this->_exec('php' . $this->extension . ' vendor/bin/codecept build');
|
||||
// Make sure to run the build command to generate AcceptanceTester
|
||||
$this->_exec($this->isWindows() ? 'vendor\bin\codecept.bat build' : 'php vendor/bin/codecept build');
|
||||
|
||||
$this->taskCodecept()
|
||||
->arg('--steps')
|
||||
|
@ -112,8 +113,8 @@ class RoboFile extends \Robo\Tasks
|
|||
{
|
||||
$this->runSelenium();
|
||||
|
||||
// Make sure to Run the Build Command to Generate AcceptanceTester
|
||||
$this->_exec("php vendor/bin/codecept build");
|
||||
// Make sure to run the build command to generate AcceptanceTester
|
||||
$this->_exec($this->isWindows() ? 'vendor\bin\codecept.bat build' : 'php vendor/bin/codecept build');
|
||||
|
||||
if (!$pathToTestFile)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue