Skip to content

Commit

Permalink
record screenshots for e2e test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 13, 2016
1 parent bd71c06 commit 9d57879
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ dist/*.map
dist/vue.common.min.js
selenium-debug.log
test/e2e/reports
test/e2e/screenshots
coverage
8 changes: 7 additions & 1 deletion build/nightwatch.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down

0 comments on commit 9d57879

Please sign in to comment.