bigbite / wp-cypress

WordPress end to end testing with Cypress.io.
MIT License
86 stars 18 forks source link

Have debug append to file. #89

Closed ampersarnie closed 2 years ago

ampersarnie commented 2 years ago

Description

When executing a command (wp-cypress start for example), fs.createWriteStream() would overwrite the debug.log file and start afresh causing all previous output to be lost. While not inherently a problem locally, the problem starts to really show when running in CI environments where you may have multiple commands running. Due to the debug.log being overwritten, we would need to capture the output between each command - sometimes that's not always possible. So appending that output becomes the better option. I believe the debug should persist for as long as required or possible without being overwritten.

Change Log

Types of changes (if applicable):

Checklist (if applicable):