Evilweed / protractor-beautiful-reporter

An npm module which provides html reports of your Protractor tests with screenshots
MIT License
169 stars 40 forks source link

Fix app.js creation by awaiting write stream end #209

Open tkohlmeier opened 3 years ago

tkohlmeier commented 3 years ago

When running a subset of tests using fit, fdescribe or --grep, the following error message is shown sporadically (often multiple times):

- Error: UNKNOWN: unknown error, open '{report folder}\app.js'

This happens because writing the app.js file is not correctly awaited.

This PR fixes this using promises and async/await.

Also removed the (in my opinion) now obsolete .lock folder mechanism.