cypress: integrate cypress-failed-log package.
To get a better log in case of error. Change-Id: Id8f72c78cb8a80e30ba3012147caa8106e1e7ce2 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90470 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
This commit is contained in:
parent
52d9cde47c
commit
dc15a4c398
5 changed files with 8 additions and 2 deletions
1
cypress_test/.gitignore
vendored
1
cypress_test/.gitignore
vendored
|
@ -2,3 +2,4 @@ node_modules
|
|||
cypress
|
||||
package-lock.json
|
||||
workdir
|
||||
support/commands.js
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
"video" : false,
|
||||
"pluginsFile" : "plugins/index.js",
|
||||
"defaultCommandTimeout" : 6000,
|
||||
"supportFile" : false,
|
||||
"supportFile" : "support/index.js",
|
||||
"ignoreTestFiles" : "*helper.js"
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MPL-2.0",
|
||||
"dependencies": {
|
||||
"cypress": "4.1.0",
|
||||
"cypress-failed-log": "2.6.2",
|
||||
"eslint": "6.8.0",
|
||||
"get-port-cli": "2.0.0",
|
||||
"wait-on": "4.0.0"
|
||||
|
|
|
@ -4,7 +4,8 @@ var tasks = require('./tasks');
|
|||
|
||||
function plugin(on, config) {
|
||||
on('task', {
|
||||
copyFile: tasks.copyFile
|
||||
copyFile: tasks.copyFile,
|
||||
failed: require('cypress-failed-log/src/failed')()
|
||||
});
|
||||
|
||||
return config;
|
||||
|
|
3
cypress_test/support/index.js
Normal file
3
cypress_test/support/index.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
/* global require */
|
||||
|
||||
require('cypress-failed-log');
|
Loading…
Reference in a new issue