Skip to content

Commit

Permalink
Display JS logs in case of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil committed Sep 14, 2021
1 parent e740bd1 commit e6d8bf0
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/ui/cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ module.exports = (on, config) => {
config.env.OCP_USERNAME = process.env.OCP_USERNAME || 'kube:admin'
config.env.OCP_PASSWORD = process.env.OCP_PASSWORD

require('cypress-terminal-report/src/installLogsPrinter')(on)

return config
}
1 change: 1 addition & 0 deletions test/ui/cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
import './commands'

require('@cypress/skip-test/support')
require('cypress-terminal-report/src/installLogsCollector')()
46 changes: 46 additions & 0 deletions test/ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"chalk": "^4.1.1",
"cypress": "^7.7.0",
"cypress-multi-reporters": "^1.5.0",
"cypress-terminal-report": "^3.3.2",
"diff": "^5.0.0",
"mocha": "^9.0.2",
"mocha-junit-reporter": "^2.0.0",
Expand Down

0 comments on commit e6d8bf0

Please sign in to comment.