[Libreoffice-commits] online.git: cypress_test/cypress.json cypress_test/.gitignore cypress_test/package.json cypress_test/plugins cypress_test/support
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 13 14:01:12 UTC 2020
cypress_test/.gitignore | 1 +
cypress_test/cypress.json | 2 +-
cypress_test/package.json | 1 +
cypress_test/plugins/index.js | 3 ++-
cypress_test/support/index.js | 3 +++
5 files changed, 8 insertions(+), 2 deletions(-)
New commits:
commit dc15a4c398a1fbe2bd686e13d88aefa960a19eb1
Author: Tamás Zolnai <zolnaitamas2000 at gmail.com>
AuthorDate: Fri Mar 13 13:47:15 2020 +0100
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Fri Mar 13 15:00:54 2020 +0100
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 at gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
diff --git a/cypress_test/.gitignore b/cypress_test/.gitignore
index 3e5e8dbd2..0b6b5b539 100644
--- a/cypress_test/.gitignore
+++ b/cypress_test/.gitignore
@@ -2,3 +2,4 @@ node_modules
cypress
package-lock.json
workdir
+support/commands.js
diff --git a/cypress_test/cypress.json b/cypress_test/cypress.json
index 77aa372d3..1b6d041f9 100644
--- a/cypress_test/cypress.json
+++ b/cypress_test/cypress.json
@@ -3,6 +3,6 @@
"video" : false,
"pluginsFile" : "plugins/index.js",
"defaultCommandTimeout" : 6000,
- "supportFile" : false,
+ "supportFile" : "support/index.js",
"ignoreTestFiles" : "*helper.js"
}
diff --git a/cypress_test/package.json b/cypress_test/package.json
index d43558232..9c9e1071e 100644
--- a/cypress_test/package.json
+++ b/cypress_test/package.json
@@ -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"
diff --git a/cypress_test/plugins/index.js b/cypress_test/plugins/index.js
index 8bf86dcba..2d07606eb 100644
--- a/cypress_test/plugins/index.js
+++ b/cypress_test/plugins/index.js
@@ -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;
diff --git a/cypress_test/support/index.js b/cypress_test/support/index.js
new file mode 100644
index 000000000..8f683db34
--- /dev/null
+++ b/cypress_test/support/index.js
@@ -0,0 +1,3 @@
+/* global require */
+
+require('cypress-failed-log');
More information about the Libreoffice-commits
mailing list