From 02678e65ba41380bae604a41f43e8260b504cc0c Mon Sep 17 00:00:00 2001 From: Kubik-Rubik Date: Fri, 30 Oct 2015 14:04:36 +0100 Subject: [PATCH 1/4] Fix for Windows to make sure to run the build command to generate AcceptanceTester --- RoboFile.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RoboFile.php b/RoboFile.php index 3be30d4..291bae0 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -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('php' . $this->extension . ' vendor/codeception/codeception/codecept build'); $this->taskCodecept() ->arg('--steps') @@ -113,7 +114,7 @@ class RoboFile extends \Robo\Tasks $this->runSelenium(); // Make sure to Run the Build Command to Generate AcceptanceTester - $this->_exec("php vendor/bin/codecept build"); + $this->_exec('php' . $this->extension . ' vendor/codeception/codeception/codecept build'); if (!$pathToTestFile) { From 3f6f869f3d6e3404c49086bc015870d6b48285a1 Mon Sep 17 00:00:00 2001 From: Kubik-Rubik Date: Fri, 30 Oct 2015 16:10:20 +0100 Subject: [PATCH 2/4] Build command with the bin folder --- RoboFile.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RoboFile.php b/RoboFile.php index 291bae0..aba1c90 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -58,8 +58,8 @@ class RoboFile extends \Robo\Tasks $this->runSelenium(); - // Make sure to Run the Build Command to Generate AcceptanceTester - $this->_exec('php' . $this->extension . ' vendor/codeception/codeception/codecept build'); + // Make sure to tun the build command to generate AcceptanceTester + $this->_exec($this->isWindows() ? 'vendor/bin/codecept.bat build' : 'php vendor/bin/codecept build'); $this->taskCodecept() ->arg('--steps') @@ -113,8 +113,8 @@ class RoboFile extends \Robo\Tasks { $this->runSelenium(); - // Make sure to Run the Build Command to Generate AcceptanceTester - $this->_exec('php' . $this->extension . ' vendor/codeception/codeception/codecept build'); + // Make sure to tun the build command to generate AcceptanceTester + $this->_exec($this->isWindows() ? 'vendor/bin/codecept.bat build' : 'php vendor/bin/codecept build'); if (!$pathToTestFile) { From 3c46c84ed1878df0285e11e06cff6601696f7160 Mon Sep 17 00:00:00 2001 From: Kubik-Rubik Date: Fri, 30 Oct 2015 16:11:05 +0100 Subject: [PATCH 3/4] Build command with the bin folder --- RoboFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RoboFile.php b/RoboFile.php index aba1c90..8c72d54 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -59,7 +59,7 @@ class RoboFile extends \Robo\Tasks $this->runSelenium(); // Make sure to tun the build command to generate AcceptanceTester - $this->_exec($this->isWindows() ? 'vendor/bin/codecept.bat build' : 'php vendor/bin/codecept build'); + $this->_exec($this->isWindows() ? 'vendor\bin\codecept.bat build' : 'php vendor/bin/codecept build'); $this->taskCodecept() ->arg('--steps') @@ -114,7 +114,7 @@ class RoboFile extends \Robo\Tasks $this->runSelenium(); // Make sure to tun the build command to generate AcceptanceTester - $this->_exec($this->isWindows() ? 'vendor/bin/codecept.bat build' : 'php vendor/bin/codecept build'); + $this->_exec($this->isWindows() ? 'vendor\bin\codecept.bat build' : 'php vendor/bin/codecept build'); if (!$pathToTestFile) { From 68c68640213608081a08eb74c06d30f13cb575bd Mon Sep 17 00:00:00 2001 From: Kubik-Rubik Date: Fri, 30 Oct 2015 16:38:49 +0100 Subject: [PATCH 4/4] Typo... thank Javier! :-P --- RoboFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RoboFile.php b/RoboFile.php index 8c72d54..affed5b 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -58,7 +58,7 @@ class RoboFile extends \Robo\Tasks $this->runSelenium(); - // Make sure to tun the build command to generate AcceptanceTester + // 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() @@ -113,7 +113,7 @@ class RoboFile extends \Robo\Tasks { $this->runSelenium(); - // Make sure to tun the build command to generate AcceptanceTester + // 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)