changed screenshot path

This commit is contained in:
Julien Chanseaume
2014-08-11 13:43:55 +02:00
parent 8cbfe5e22a
commit 4b85156fb8
2 changed files with 4 additions and 3 deletions

View File

@@ -31,8 +31,7 @@ before_script:
- git checkout tags/1.1-beta3
script:
- "DISPLAY=:99.0 ./bin/casperjs test ../thelia/tests/functionnal/casperjs/exe/front/ --pre=../thelia/tests/functionnal/casperjs/conf/local.js --verbose --thelia2_base_url='http://localhost:8000/index.php/'"
- "DISPLAY=:99.0 ./bin/casperjs test ../thelia/tests/functionnal/casperjs/exe/front/ --pre=../thelia/tests/functionnal/casperjs/conf/local.js --verbose --thelia2_base_url='http://localhost:8000/index.php/' --thelia2_screenshot_path='../thelia/tests/functionnal/casperjs/screenshot/'"
matrix:
allow_failures:

View File

@@ -18,7 +18,9 @@ if (casper.cli.has('thelia2_base_url')){
}
var screenshot_dir = 'tests/functionnal/casperjs/screenshot/';
if (casper.cli.has('thelia2_screenshot_path')){
screenshot_dir = casper.cli.get('thelia2_screenshot_path');
}
casper.options.viewportSize = {width: 1024, height: 768};