modal library - added automatic setting of template renderer whether Handlebars is defined, defaults to pure html - fixed modal title issue (remove handlebars syntax from overlay template) - added a sample file for acceptance tests config - robo task to auto create acceptance tests config file based on sample
This commit is contained in:
23
RoboFile.php
23
RoboFile.php
@ -14,13 +14,24 @@ class RoboFile extends \Robo\Tasks {
|
||||
$this->_exec('vendor/bin/codecept run unit');
|
||||
}
|
||||
|
||||
function testAcceptanceConfig() {
|
||||
// create config file from sample unless a config file alread exists
|
||||
return $this->_copy(
|
||||
'tests/acceptance.suite.yml.sample',
|
||||
'tests/acceptance.suite.yml',
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
function testAcceptance() {
|
||||
$this
|
||||
->taskExec('phantomjs --webdriver=4444')
|
||||
->background()
|
||||
->run();
|
||||
sleep(2);
|
||||
$this->_exec('vendor/bin/codecept run acceptance');
|
||||
if($this->testAcceptanceConfig()) {
|
||||
$this
|
||||
->taskExec('phantomjs --webdriver=4444')
|
||||
->background()
|
||||
->run();
|
||||
sleep(2);
|
||||
$this->_exec('vendor/bin/codecept run acceptance');
|
||||
}
|
||||
}
|
||||
|
||||
function testAll() {
|
||||
|
Reference in New Issue
Block a user