-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After Cypress version migration, cypress-terminal-report no longer prints console output on failure #197
Comments
Which version of Cypress are you using? Which version of cypress-terminal-report? I am running // cypress/support/e2e.ts
...
installLogsCollector({
enableExtendedCollector: true,
xhr: { printRequestData: true, printHeaderData: true },
});
... // cypress.config.ts
export default defineConfig({
e2e: {
...
setupNodeEvents(on, config) {
installLogsPrinter(on);
... // the test file
...
describe("account", () => {
before(() => {
console.log("TEST TEST TEST");
});
... But I do not see the |
I think we might be facing #67. |
Cypress Version: 12.16.0 CTR version: 5.3.0 Currently no console/network tab output is displayed on failure while running headless, it's as if CTR doesn't exist. But, afaik it's set up properly. For example, here's some output with failures while running headless:
These numbered failures usually provide verbose messaging. |
To me what happens is that when updating to version 5.3.0 I start getting the following message when I have @ignored tests: If I downgrade to 5.2.0 it works. I simply place a @Focus tag in a test inside a feature file to ignore the others, and then I get that error.
|
Release a fix for this in 5.3.1 Please verify and report back. |
Thanks @archfz for addressing, however after upgrading to 5.3.1, all Cypress tests fail outright with
This failure happens before tests start, fully blocking runs |
An ESM import was left in the code. Check with 5.3.2 |
It looks like I'm now getting verbose reporting! However, not all failed tests are providing verbose reporting. For example, in one test series I have one test fail without verbose reporting, and another fail that does provide it right after:
I'm not sure why some are printing while others aren't, but overall I can confirm cypress-terminal-report is printing output in headless. Should I open a new ticket for this leftover issue? |
Closing this. Please open new issue and try to add a reproducible example / fork of demo. |
Following up after #194, I've found that while it appeared as if things were working okay, CTR is no longer printing the verbose failure messages while running headless.
The most recent version of CTR is installed using
npm install cypress-terminal-report
, and other plugins such as cypress-axe are working okay.In my e2e.js file, I have the following:
In my e2e file, I have the following:
require('cypress-terminal-report/src/installLogsCollector')();
I'm not seeing why it's not working, any help would be appreciated.
The text was updated successfully, but these errors were encountered: