jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Browser console output should be logged to log/development.log #581

Open thebravoman opened 4 years ago

thebravoman commented 4 years ago

Running specs from browser. Console log in browser contains things like

Uncaught Extension 'lc' registered to listen for non existing event: 'ac'!
2scenarios_spec.self-aab74e4a9e58cea940c59c886d2b129405e994265bcef3120b9d937e78387840.js?body=1?body=1:54 Uncaught (in promise) undefined
checkEvent @ scenarios_spec.self-aab74e4a9e58cea940c59c886d2b129405e994265bcef3120b9d937e78387840.js?body=1?body=1:54
setTimeout (async)
checkEvent @ scenarios_spec.self-aab74e4a9e58cea940c59c886d2b129405e994265bcef3120b9d937e78387840.js?body=1?body=1:62
setTimeout (async)
checkEvent @ scenarios_spec.self-aab74e4a9e58cea940c59c886d2b129405e994265bcef3120b9d937e78387840.js?body=1?body=1:62

These are errors that my tests output as error in the console, because of some promises.

What I can not find and I think should be added to the documentation is how to get this error logged to log/development.log when I am starting teaspoon from cli

hidr0 commented 4 years ago

I would like to see this resolved as-well.

mathieujobin commented 3 years ago

it indeed sounds like a good suggestion, if you can make the change, please open a PR