Skip to content

Commit

Permalink
[4.0] Add support windows system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
810 committed Mar 31, 2018
1 parent 0d72e1c commit 5315c30
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions RoboFile.php
Expand Up @@ -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
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -480,4 +480,4 @@ private function getSuiteConfig($suite = 'acceptance')

return $this->suiteConfig;
}
}
}

0 comments on commit 5315c30

Please sign in to comment.