-
-
Notifications
You must be signed in to change notification settings - Fork 827
Conversation
This cypress plugin gives nice console logs about what is happening: I hope it will help us debug mysteriously failing tests. In its default config, it only logs for failing tests.
// disable logging of HTTP requests made to the Cypress server. They are noisy and not very helpful. | ||
// @ts-ignore https://github.com/cypress-io/cypress/issues/26284 | ||
morgan: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this disables the HTTP 7/10/2023 9:21:09 PM 127.0.0.1 GET /sw.js
spam that cypress normally writes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaks console logging from plugins & axe.ts (terminalLog)
No it doesn't. I thought it did but that's because I can't read. |
To expand a bit more on the warning about console.log in the project's readme: if you look at the issue that resulted in the warning, the complaint is "I'm using
That situation is quite different to the use of |
It seems to make axe failures much harder to read After
seems like this is due to the buffering causing the log order to be confusing. Axe failures end up in the middle of the log instead of at the bottom |
It's at the top (other than a couple of lines from the synapse startup/shutdown), no? |
Yes but only if its the first test overall, it'd get buried amongst output from our ~200 tests. But not a blocker either way |
@@ -174,7 +174,7 @@ jobs: | |||
record: true | |||
parallel: true | |||
command-prefix: "yarn percy exec --parallel --" | |||
config: '{"reporter":"cypress-multi-reporters", "reporterOptions": { "configFile": "cypress-ci-reporter-config.json" } }' | |||
config: '{"reporter":"cypress-multi-reporters", "reporterOptions": { "configFile": "cypress-ci-reporter-config.json" }, "morgan": false }' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why the config in cypress.config.ts
isn't working here, and I don't know if this is going to fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Narrator: it did not fix it. The test logs include:
[percy] Running "cypress run --headed --record --parallel --config {"reporter":"cypress-multi-reporters", "reporterOptions": { "configFile": "cypress-ci-reporter-config.json" }, "morgan": false } --ci-build-id sha-c5befa1ef8ed72f0d09ae4fb5df21b4536b324f7-time-1689141941"
The following configuration option is invalid:
- morgan
well the other tests should be pretty silent. |
This cypress plugin gives nice console logs about what is happening: I hope it will help us debug mysteriously failing tests.
In its default config, it only logs for failing tests.
This change is marked as an internal change (Task), so will not be included in the changelog.