Closed
Description
Continuation from here.
- Use domains to determine which test
console.log
is used from.- Provide a
t.log
method.
2
is a less controversial choice, but won't help for logging from production code.
One possibility for such grouping would be to only display the logs when the test failed. I think this is an especially a good idea for t.log
, as it lets you leave them in your tests without consequence if you think they will help troubleshoot future failures.