Skip to content
Snippets Groups Projects
Unverified Commit cdafc05f authored by Varac's avatar Varac
Browse files

Use cypress-terminal-report for detailled logs

parent 0c44baca
No related branches found
No related tags found
1 merge request!326Use cypress-terminal-report for detailled logs
Pipeline #31687 passed with stages
in 12 minutes and 25 seconds
......@@ -3,6 +3,7 @@ charts
node_modules/
cypress/videos/
cypress/screenshots/
cypress/logs/
# Ignore local dev files
Taskfile.yaml
values-stackspin.yaml
......
# Changelog
## [0.15.1] - 2022-10-26
* Add cypress test output to pod logs
## [0.15.0] - 2022-10-26
* Migrate post install and upgrade jobs to a postStartCommand inside the
......
......@@ -4,7 +4,7 @@ description: |
A helm chart for installing NextCloud and setting up ONLYOFFICE integration
name: nextcloud-onlyoffice
appVersion: NC-24.0.5-OO-7.2.0.204
version: 0.15.0
version: 0.15.1
icon: https://cdn.rawgit.com/docker-library/docs/defa5ffc7123177acd60ddef6e16bddf694cc35f/nextcloud/logo.svg
dependencies:
# https://artifacthub.io/packages/helm/nextcloud/nextcloud
......
......@@ -3,7 +3,11 @@ const { defineConfig } = require("cypress");
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
// https://github.com/archfz/cypress-terminal-report
const options = {
printLogsToConsole: "always",
}
require('cypress-terminal-report/src/installLogsPrinter')(on, options);
},
},
// https://docs.cypress.io/guides/guides/web-security#Disabling-Web-Security
......
......@@ -7,7 +7,13 @@
// https://www.npmjs.com/package/cypress-iframe
import 'cypress-iframe';
const options = {
// Filter out flood of cons:warn deprecation and other unimportant cons:info msgs
collectTypes: ['cons:log', 'cons:error', 'cy:log', 'cy:xhr', 'cy:request', 'cy:route', 'cy:intercept', 'cy:command'],
// experimental and instable, use with care!
enableContinuousLogging: true
}
require('cypress-terminal-report/src/installLogsCollector')(options);
describe('Test nextcloud', () => {
it('passes', () => {
......
This diff is collapsed.
......@@ -6,10 +6,9 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"cypress": "10.10.0",
"cypress-iframe": "1.0.1"
"cypress-iframe": "1.0.1",
"cypress-terminal-report": "^4.1.2"
}
}
......@@ -13,3 +13,7 @@ data:
{{ .Files.Get "cypress/support/e2e.js" | nindent 4 }}
test-nextcloud.cy.js: |-
{{ .Files.Get "cypress/e2e/test-nextcloud.cy.js" | nindent 4 }}
package.json: |-
{{ .Files.Get "package.json" | nindent 4 }}
package-lock.json: |-
{{ .Files.Get "package-lock.json" | nindent 4 }}
......@@ -21,7 +21,7 @@ spec:
- |
cp -a /e2e /tmp
cd /tmp/e2e
npm install cypress-iframe
npm install
if [ -n "$CYPRESS_RECORD_KEY" ]; then cypress run -P /tmp/e2e --record --key "$CYPRESS_RECORD_KEY" ; else cypress run -P /tmp/e2e; fi
env:
- name: CYPRESS_BASE_URL
......@@ -89,4 +89,8 @@ spec:
path: cypress/support/e2e.js
- key: test-nextcloud.cy.js
path: cypress/e2e/test-nextcloud.cy.js
- key: package.json
path: package.json
- key: package-lock.json
path: package-lock.json
restartPolicy: Never
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment