mlison/protractor-jasmine2-screenshot-reporter

Add process.on to beforeLaunch

Closed this issue · 1 comments

Just letting people know as an FYI...

The report doesn't get any data and isn't closed out if protractor/webdriver hits an uncaughtException.

Add this to the beforeLaunch function in the protractor config file to account for uncaughtExceptions:

process.on('uncaughtException', function () {
reporter.jasmineDone();
reporter.afterLaunch();
});

Thanks, thats a good info. I've added this to readme.