From 9d57879de15f3def008e67771d8cab9d34fe74bc Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 13 Jun 2016 18:14:33 -0400 Subject: [PATCH] record screenshots for e2e test failures --- .gitignore | 1 + build/nightwatch.config.js | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e9e5b468..c5510eae 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ dist/*.map dist/vue.common.min.js selenium-debug.log test/e2e/reports +test/e2e/screenshots coverage diff --git a/build/nightwatch.config.js b/build/nightwatch.config.js index 1ec1e127..17c42d8a 100644 --- a/build/nightwatch.config.js +++ b/build/nightwatch.config.js @@ -19,7 +19,13 @@ module.exports = { 'default': { 'selenium_port': 4444, 'selenium_host': 'localhost', - 'silent': true + 'silent': true, + 'screenshots': { + 'enabled': true, + 'on_failure': true, + 'on_error': false, + 'path': 'test/e2e/screenshots' + } }, 'chrome': {