5 ms·
I was recently trying out Node's newish test runner [1] but wanted better error reporting and was grateful that Node provided an API that let me use any TAP-com
by sizediterable 3y ago
I was recently trying out Node's newish test runner [1] but wanted better error reporting and was grateful that Node provided an API that let me use any TAP-compatible error reporter. I did find unfortunately that most error reporters I tried seemed to have problems, the most common one was not reporting whether or not a test was skipped, which was a deal-breaker. In the end I settled for tap-mocha-reporter [2] since it worked well enough. I did have to end up patching it to not print extraneous new lines, I suspect an artifact of it using YAML for its internal representation. I do wish there was an error reporter that mimicked exactly the format of Jest, as it's what I'm most used to.
[1] https://nodejs.org/api/test.html https://nodejs.org/api/test.html
[2] https://github.com/tapjs/tap-mocha-reporter https://github.com/tapjs/tap-mocha-reporter
- inglor 3y agoWe actually ship a tap reporter in Node and it used to be the default until recently :)