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:
parent
c47f218f38
commit
b59f14e7e0
|
@ -123,6 +123,14 @@ function runIntern(suites, browser) {
|
||||||
excludeInstrumentation: true,
|
excludeInstrumentation: true,
|
||||||
reporters: ['Runner', 'tests/functional/screenshot_on_fail']
|
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 configFile = 'tests/functional/config.js';
|
||||||
var configFileContents = 'define(function(){return' + JSON.stringify(config) + '})';
|
var configFileContents = 'define(function(){return' + JSON.stringify(config) + '})';
|
||||||
fs.writeFileSync( // eslint-disable-line no-sync
|
fs.writeFileSync( // eslint-disable-line no-sync
|
||||||
|
|
|
@ -48,6 +48,8 @@ NAILGUN_ROOT=$FUEL_WEB_ROOT/nailgun
|
||||||
ARTIFACTS=${ARTIFACTS:-`pwd`/test_run/ui_func}
|
ARTIFACTS=${ARTIFACTS:-`pwd`/test_run/ui_func}
|
||||||
mkdir -p $ARTIFACTS
|
mkdir -p $ARTIFACTS
|
||||||
|
|
||||||
|
export FAIL_FAST=${FAIL_FAST:-true}
|
||||||
|
|
||||||
export NAILGUN_STATIC=$ARTIFACTS/static
|
export NAILGUN_STATIC=$ARTIFACTS/static
|
||||||
export NAILGUN_TEMPLATES=$NAILGUN_STATIC
|
export NAILGUN_TEMPLATES=$NAILGUN_STATIC
|
||||||
|
|
||||||
|
@ -127,8 +129,10 @@ function run_ui_func_tests {
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $result -ne 0 ]; then
|
if [ $FAIL_FAST = true ] ; then
|
||||||
break
|
if [ $result -ne 0 ]; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue