test_runner: delegate stderr and stdout formatting to reporter
Introduce new TestsStream
events test:stderr
and test:stdout
to delegate stderr
and stdout
(e.g. console.log()
) formatting
to the reporter. And patch existing reporters to:
- Spec: output the message as it is
- TAP: stay the same with existing
test:diagnostic