We are using cypress in conjunction with ReportPortal which is an open source test reporting and aggregation solution. We are using agent-js-cypress plugin to push the test results and logs to ReportPortal, and cypress-multi-reporters to allow generating multiple log outputs at the same time (we need agent-js-cypress for ReportPortal and mocha, mochawesome for other systems).
Expected behavior
Expected is that regardless of the reporter used, complete output generated by cypress-terminal-reporter is shown in the output (either console or output file).
Actual behavior
When using cypress-multi-reporters with cypress-terminal-report, the majority of the logs are omitted. I think all the cons:log (K): calls are not shown in the output file or in the console; only the cy:command and cy:xhr calls are shown.
Information about the Issue
The same issue is logged with cypress-terminal-report project as well: archfz/cypress-terminal-report#28
Steps to reproduce the behavior
When using the below configuration, most parts of the logs are missing from the report.
Cypress.json:
"reporter": "cypress-multi-reporters", "reporterOptions": { "configFile": "cypress/reporter-config.prod.json" }
reporter-config.prod.json:
{ "reporterEnabled": "mochawesome,agent-js-cypress", "mochawesomeReporterOptions": { "reportDir": "cypress/reports/individual-reports", "overwrite": false, "html": false, "json": true }, "reporterOptions": { "endpoint": "https://reportportal.xxxx/api/v1", "token": "xxxx", "launch": "xxx", "project": "CanaryTests", "description": "Synthetic monitoring tests for the main user journey including perf measurements", "isLaunchMergeRequired": true, "debug": false, "attributes": [ { "value": "PROD" } ] } }
When using the below, all logs are present:
"reporter": "agent-js-cypress", "reporterOptions": { "endpoint": "https://reportportal.xxxx/api/v1", "token": "xxx", "launch": "xxx", "project": "CanaryTests", "description": "Synthetic monitoring tests for the main user journey including perf measurements", "isLaunchMergeRequired": true, "debug": false, "attributes": [ { "value": "localDEV" } ] }