Skip to content

Commit 851f1c5

Browse files
committed
MQE-386: MFTF Compatibility with Windows Machine
- update Robofile to use DIRECTORY_SEPARATOR constant
1 parent 1de2400 commit 851f1c5

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

dev/tests/acceptance/RoboFile.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function cloneFiles()
2222
{
2323
$this->_exec('cp -vn .env.example .env');
2424
$this->_exec('cp -vf codeception.dist.yml codeception.yml');
25-
$this->_exec('cp -vf tests/functional.suite.dist.yml tests/functional.suite.yml');
25+
$this->_exec('cp -vf tests'. DIRECTORY_SEPARATOR .'functional.suite.dist.yml tests'. DIRECTORY_SEPARATOR .'functional.suite.yml');
2626
}
2727

2828
/**
@@ -34,7 +34,7 @@ function cloneFiles()
3434
function buildProject()
3535
{
3636
$this->cloneFiles();
37-
$this->_exec('./vendor/bin/codecept build');
37+
$this->_exec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept build');
3838
}
3939

4040
/**
@@ -78,7 +78,7 @@ function generateSuite(array $args)
7878
*/
7979
function chrome()
8080
{
81-
$this->_exec('./vendor/bin/codecept run functional --env chrome --skip-group skip');
81+
$this->_exec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run functional --env chrome --skip-group skip');
8282
}
8383

8484
/**
@@ -88,7 +88,7 @@ function chrome()
8888
*/
8989
function firefox()
9090
{
91-
$this->_exec('./vendor/bin/codecept run functional --env firefox --skip-group skip');
91+
$this->_exec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run functional --env firefox --skip-group skip');
9292
}
9393

9494
/**
@@ -98,7 +98,7 @@ function firefox()
9898
*/
9999
function phantomjs()
100100
{
101-
$this->_exec('./vendor/bin/codecept run functional --env phantomjs --skip-group skip');
101+
$this->_exec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run functional --env phantomjs --skip-group skip');
102102
}
103103

104104
/**
@@ -108,7 +108,7 @@ function phantomjs()
108108
*/
109109
function headless()
110110
{
111-
$this->_exec('./vendor/bin/codecept run functional --env headless --skip-group skip');
111+
$this->_exec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run functional --env headless --skip-group skip');
112112
}
113113

114114
/**
@@ -119,7 +119,7 @@ function headless()
119119
*/
120120
function group($args = '')
121121
{
122-
$this->taskExec('./vendor/bin/codecept run functional --verbose --steps --env chrome --skip-group skip --group')->args($args)->run();
122+
$this->taskExec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run functional --verbose --steps --env chrome --skip-group skip --group')->args($args)->run();
123123
}
124124

125125
/**
@@ -130,7 +130,7 @@ function group($args = '')
130130
*/
131131
function folder($args = '')
132132
{
133-
$this->taskExec('./vendor/bin/codecept run functional --env chrome')->args($args)->run();
133+
$this->taskExec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run functional --env chrome')->args($args)->run();
134134
}
135135

136136
/**
@@ -140,7 +140,7 @@ function folder($args = '')
140140
*/
141141
function example()
142142
{
143-
$this->_exec('./vendor/bin/codecept run --env chrome --group example --skip-group skip');
143+
$this->_exec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run --env chrome --group example --skip-group skip');
144144
}
145145

146146
/**
@@ -150,7 +150,7 @@ function example()
150150
*/
151151
function allure1Generate()
152152
{
153-
return $this->_exec('allure generate tests/_output/allure-results/ -o tests/_output/allure-report/');
153+
return $this->_exec('allure generate tests'. DIRECTORY_SEPARATOR .'_output'. DIRECTORY_SEPARATOR .'allure-results'. DIRECTORY_SEPARATOR .' -o tests'. DIRECTORY_SEPARATOR .'_output'. DIRECTORY_SEPARATOR .'allure-report'. DIRECTORY_SEPARATOR .'');
154154
}
155155

156156
/**
@@ -160,7 +160,7 @@ function allure1Generate()
160160
*/
161161
function allure2Generate()
162162
{
163-
return $this->_exec('allure generate tests/_output/allure-results/ --output tests/_output/allure-report/ --clean');
163+
return $this->_exec('allure generate tests'. DIRECTORY_SEPARATOR .'_output'. DIRECTORY_SEPARATOR .'allure-results'. DIRECTORY_SEPARATOR .' --output tests'. DIRECTORY_SEPARATOR .'_output'. DIRECTORY_SEPARATOR .'allure-report'. DIRECTORY_SEPARATOR .' --clean');
164164
}
165165

166166
/**
@@ -170,7 +170,7 @@ function allure2Generate()
170170
*/
171171
function allure1Open()
172172
{
173-
$this->_exec('allure report open --report-dir tests/_output/allure-report/');
173+
$this->_exec('allure report open --report-dir tests'. DIRECTORY_SEPARATOR .'_output'. DIRECTORY_SEPARATOR .'allure-report'. DIRECTORY_SEPARATOR .'');
174174
}
175175

176176
/**
@@ -180,7 +180,7 @@ function allure1Open()
180180
*/
181181
function allure2Open()
182182
{
183-
$this->_exec('allure open --port 0 tests/_output/allure-report/');
183+
$this->_exec('allure open --port 0 tests'. DIRECTORY_SEPARATOR .'_output'. DIRECTORY_SEPARATOR .'allure-report'. DIRECTORY_SEPARATOR .'');
184184
}
185185

186186
/**

0 commit comments

Comments
 (0)