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:
Jonathan Labreuille
2015-07-20 20:45:47 +02:00
parent d64756f07f
commit 8137a30f46
10 changed files with 60 additions and 43 deletions

View File

@ -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() {