Closed jprichardson closed 9 years ago
Bump :)
:-1:
Mocha should respect the TAP specification.
Mocha should respect the TAP specification.
Oh sorry, I wasn't aware that Mocha wasn't following the TAP specification. I looked over https://testanything.org/tap-specification.html and I didn't see anything related to errors / error outputs indicating that Mocha wasn't correctly following the spec. So I'm not sure how Mocha is violating the spec. Would you mind pointing it out? Thanks.
@jprichardson
Check out the TAP 13 spec ( https://testanything.org/tap-version-13-specification.html ). It mentions that error diagnosis should be yaml blocks.
Oh wow. Thanks for pointing that out @Raynos, I had no idea! To be fair to Mocha, it doesn't specify which TAP version, but there's no reason that Mocha shouldn't comply with TAP version 13. I'll bring the issue over there :)
So we know tape output errors like this:
Would you be willing to modify
tap-out
so that it can catch Mocha tap errors as well?I don't think it'd need to be as sophisticated enough to convert to the tape error object that you have already, but if it included the mocha output in the
assertion.error.raw
field, that'd be super helpful.Thanks!