I am investigating easy ways to reuse tests that output the TAP format.
I want to be able to start Chrome from the command line and capture console.log output
If I have the following file called index.html
<script>
console.log('beep boop!')
</script>
...can I then capture from the command line by doing something like this:
# start-crome --flag > out.txt
...and have out.txt contain "beep boop!"?
EDIT: Yes there are other questions that cover saving console.log to file manually. I want to pipe console log to stdout, so that debug information can be analysed in an automated unix setting
tail -f chrome_debug.log | Analyzer
– Stuyvesant