cypress: install package 'cypress-terminal-report'

https://github.com/archfz/cypress-terminal-report

Change-Id: I242e421aeb02ee3861b16af78af87c6a9db22ad5
Signed-off-by: Henry Castro <hcastro@collabora.com>
pull/6868/head
Henry Castro 2023-07-07 12:01:32 -04:00
parent e69969a07b
commit f3787c85e8
4 changed files with 12 additions and 2 deletions

View File

@ -281,6 +281,11 @@ Used Packages
- cypress:
Cypress integration test framework.
- cypress-terminal-report:
This package makes cypress to dump test logs to the command line
when a test fails. You can write things to this log by calling
cy.log() in the test code.
- cypress-log-to-output:
This one can be used to dump console.error() messages to the command
line. To enable this functionality you need to set ENABLE_CONSOLE_LOG

View File

@ -1,7 +1,7 @@
/* global process */
import { defineConfig } from 'cypress';
import plugin from './plugins/index.js';
import 'process';
import process from 'process';
import installLogsPrinter from 'cypress-terminal-report/src/installLogsPrinter';
export default defineConfig({
video: false,
@ -17,6 +17,7 @@ export default defineConfig({
},
e2e: {
setupNodeEvents(on, config) {
installLogsPrinter(on);
plugin(on, config);
},
specPattern: 'integration_tests/**/*_spec.js',

View File

@ -11,6 +11,7 @@
"cypress-file-upload": "5.0.8",
"cypress-iframe": "1.0.1",
"cypress-log-to-output": "1.1.2",
"cypress-terminal-report": "^5.3.0",
"cypress-wait-until": "1.7.2",
"eslint": "7.19.0",
"eslint-plugin-cypress-rules": "file:eslint_plugin",

View File

@ -3,6 +3,9 @@
require('cypress-wait-until');
require('cypress-file-upload');
require('cypress-iframe');
import installLogsCollector from 'cypress-terminal-report/src/installLogsCollector';
installLogsCollector();
if (Cypress.env('INTEGRATION') === 'php-proxy') {
Cypress.Server.defaults({