We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code in BaseOutputProcessor.js:
hasSpecChunkWritten(spec) { return !!this.specChunksWritten[spec]; }
will throw if a log file for the current spec already exists in the output folder. This is because the following doesn't get invoked:
if (!fs.existsSync(this.file)) { this.prepareForWrite(); }
Due to this, this.specChunksWritten is never initialized before hasSpecChunkWritten tries to access it.
this.specChunksWritten
hasSpecChunkWritten
The text was updated successfully, but these errors were encountered:
Do you have steps to reproduce so we can write a test for this case?
Sorry, something went wrong.
integration/myTest.spec.js
require('cypress-terminal-report/src/installLogsPrinter')(on, { outputRoot: 'cypress/', specRoot: 'cypress/integration', printLogsToFile: 'always', // <--- so that we always try to access the file printLogsToConsole: 'never', outputTarget: { 'logs|txt': 'txt', 'logs|json': 'json', }, });
Add to support:
require('cypress-terminal-report/src/installLogsCollector')();
add myTest.txt to cypress/logs
myTest.txt
run cypress
Released in 2.3.1
No branches or pull requests
The following code in BaseOutputProcessor.js:
will throw if a log file for the current spec already exists in the output folder. This is because the following doesn't get invoked:
Due to this,
this.specChunksWritten
is never initialized beforehasSpecChunkWritten
tries to access it.The text was updated successfully, but these errors were encountered: