Nightly ui functional tests update.

1. Generating xml file output for parcing results into Test rail.
2. Add "FAIL_FAST" variable to aviod test run stopping at the middle of execution.

Change-Id: Ia566f86262abc2bbf2e449c52d2a3e8b76329610
This commit is contained in:
Grigory Mikhailov 2016-10-31 15:29:30 +03:00
parent c47f218f38
commit b59f14e7e0
2 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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