diff --git a/gulpfile.js b/gulpfile.js index fbcc50634..4750fcb49 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -123,6 +123,14 @@ function runIntern(suites, browser) { excludeInstrumentation: true, reporters: ['Runner', 'tests/functional/screenshot_on_fail'] }; + if (process.env.FAIL_FAST === 'false') { + config.reporters.push( + { + id: 'JUnit', + filename: process.env.WORKSPACE + '/nightly_report_' + new Date().getTime() + '.xml' + } + ); + } var configFile = 'tests/functional/config.js'; var configFileContents = 'define(function(){return' + JSON.stringify(config) + '})'; fs.writeFileSync( // eslint-disable-line no-sync diff --git a/run_ui_func_tests.sh b/run_ui_func_tests.sh index 5d1734aec..161274b39 100755 --- a/run_ui_func_tests.sh +++ b/run_ui_func_tests.sh @@ -48,6 +48,8 @@ NAILGUN_ROOT=$FUEL_WEB_ROOT/nailgun ARTIFACTS=${ARTIFACTS:-`pwd`/test_run/ui_func} mkdir -p $ARTIFACTS +export FAIL_FAST=${FAIL_FAST:-true} + export NAILGUN_STATIC=$ARTIFACTS/static export NAILGUN_TEMPLATES=$NAILGUN_STATIC @@ -127,8 +129,10 @@ function run_ui_func_tests { popd > /dev/null fi - if [ $result -ne 0 ]; then - break + if [ $FAIL_FAST = true ] ; then + if [ $result -ne 0 ]; then + break + fi fi done