Added new env var for e2e reports

This commit is contained in:
Wyatt Johnson
2017-01-27 11:20:45 -07:00
parent 5d1fd61425
commit d829d2541f
2 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ test:
# Run the tests using the junit reporter.
- MOCHA_FILE=$CIRCLE_TEST_REPORTS/junit/test-results.xml NPM_PACKAGE_CONFIG_MOCHA_REPORTER=mocha-junit-reporter npm run test
# Run the e2e test suite
- npm run e2e
- E2E_REPORT_PATH=$CIRCLE_TEST_REPORTS/e2e npm run e2e
deployment:
release:
+8 -7
View File
@@ -1,8 +1,13 @@
require('babel-core/register');
let E2E_REPORT_PATH = './test/e2e/reports';
if (process.env.E2E_REPORT_PATH && process.env.E2E_REPORT_PATH.length > 0) {
E2E_REPORT_PATH = process.env.E2E_REPORT_PATH;
}
module.exports = {
'src_folders': './test/e2e/tests',
'output_folder': './test/e2e/reports',
'output_folder': E2E_REPORT_PATH,
'page_objects_path': './test/e2e/pages',
'globals_path': './test/e2e/globals',
'custom_commands_path' : '',
@@ -10,7 +15,7 @@ module.exports = {
'selenium': {
'start_process': true,
'server_path': 'node_modules/selenium-standalone/.selenium/selenium-server/2.53.1-server.jar',
'log_path': './test/e2e/reports',
'log_path': E2E_REPORT_PATH,
'host': '127.0.0.1',
'port': 6666,
'cli_args': {
@@ -36,7 +41,7 @@ module.exports = {
'enabled': true,
'on_failure': true,
'on_error': true,
'path': './tests/e2e/reports'
'path': E2E_REPORT_PATH
},
'exclude': [
'./tests/e2e/tests/EmbedStreamTests.js'
@@ -47,7 +52,3 @@ module.exports = {
}
}
};
// "chromeOptions" : {
// "args" : ["start-fullscreen"]
// }