From cde3c4e17e26e88bd6e38f2fa3c41b61a0473f5b Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Wed, 11 Oct 2017 20:01:27 +0700 Subject: [PATCH] Move logs to test/e2e --- .gitignore | 4 ++-- nightwatch.conf.js | 1 + scripts/e2e.js | 5 ++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 32fd646df..1f87b52bf 100644 --- a/.gitignore +++ b/.gitignore @@ -15,8 +15,8 @@ client/coral-framework/graphql/introspection.json *.DS_STORE coverage/ -tests_output/ -local.log +test/e2e/tests_output/ +test/e2e/bslocal.log plugins.json plugins/* diff --git a/nightwatch.conf.js b/nightwatch.conf.js index 2e8bc65fa..50b0b5a80 100644 --- a/nightwatch.conf.js +++ b/nightwatch.conf.js @@ -1,5 +1,6 @@ const nightwatch_config = { src_folders: './test/e2e/specs/', + output_folder: './test/e2e/tests_output', selenium : { 'start_process': false, diff --git a/scripts/e2e.js b/scripts/e2e.js index 18ec65b8d..3b36da8d6 100755 --- a/scripts/e2e.js +++ b/scripts/e2e.js @@ -10,7 +10,10 @@ try { // Code to start browserstack local before start of test console.log('Connecting local'); Nightwatch.bs_local = bs_local; - bs_local.start({'key': process.env.BROWSERSTACK_KEY}, function(error) { + bs_local.start({ + 'key': process.env.BROWSERSTACK_KEY, + 'logFile': './test/e2e/bslocal.log' + }, function(error) { if (error) { console.error(error); throw error;