Cypress: write logs to file (#11712)

... in an attempt to make the github actions output easier to grok
This commit is contained in:
Richard van der Hoff 2023-10-04 11:03:33 +01:00 committed by GitHub
parent 9d1f10e4be
commit 241df0ba0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 3 deletions

View file

@ -50,6 +50,15 @@ export default function (on: PluginEvents, config: PluginConfigOptions) {
config,
);
installLogsPrinter(on, {
// printLogsToConsole: "always",
printLogsToConsole: "never",
// write logs to cypress/results/cypresslogs/<spec>.txt
outputRoot: "cypress/results",
outputTarget: {
"cypresslogs|txt": "txt",
},
// strip 'cypress/e2e' from log filenames
specRoot: "cypress/e2e",
});
}