diff --git a/RoboFile.php b/RoboFile.php index 4f65c925f325c..ec070be247fb8 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -280,8 +280,8 @@ public function runTests($opts = ['use-htaccess' => false, 'env' => 'desktop']) // Make sure to run the build command to generate AcceptanceTester if ($this->isWindows()) { - $this->_exec('php ' . $this->getWindowsPath($this->vendorPath . 'bin/codecept') . ' build'); - $pathToCodeception = $this->getWindowsPath($this->vendorPath . 'bin/codecept'); + $this->_exec('php ' . $this->getWindowsPath($this->vendorPath . 'bin/codecept') . '.bat build'); + $pathToCodeception = $this->getWindowsPath($this->vendorPath . 'bin/codecept') . '.bat'; } else { @@ -325,7 +325,7 @@ public function runTest($pathToTestFile = null, $suite = 'acceptance') // Make sure to run the build command to generate AcceptanceTester $path = $this->vendorPath . 'bin/codecept'; - $this->_exec('php ' . $this->isWindows() ? $this->getWindowsPath($path) : $path . ' build'); + $this->_exec('php ' . $this->isWindows() ? $this->getWindowsPath($path) . '.bat' : $path . ' build'); if (!$pathToTestFile) { @@ -413,7 +413,7 @@ public function runTest($pathToTestFile = null, $suite = 'acceptance') $testPathCodecept = $this->vendorPath . 'bin/codecept'; - $this->taskCodecept($this->isWindows() ? $this->getWindowsPath($testPathCodecept) : $testPathCodecept) + $this->taskCodecept($this->isWindows() ? $this->getWindowsPath($testPathCodecept) . '.bat' : $testPathCodecept) ->test($pathToTestFile) ->arg('--steps') ->arg('--debug') @@ -480,4 +480,4 @@ private function getSuiteConfig($suite = 'acceptance') return $this->suiteConfig; } -} +} \ No newline at end of file