unsetbit/thrill

Output/Reporter for build server integration?

Closed this issue · 2 comments

Is it possible to let thrill create output for a build server? E.g. the testem script runner has a so called CI mode that emits the results in TAP format that can be understood by several build servers. Am I missing this point or is it something not supported by thrill (yet)?

I'd like to be able to run my mocha tests through SauceLabs and get the results back into my local build server.

Maybe it's easy to implement as an TAP reporter. By I'm not sure if this would be the right path.

While it's fairly easy to write custom reporters, I think you can just use mocha's reporter for this one. Adding the -r mocha:TAP option when running Thrill, will have it use Mocha's TAP reporter for its output. If you're using a config file, the option would be reporter: "mocha:TAP". If you're having the tests run over a long distance (SauceLabs) I would also recommend you add stream: false to disable streaming reporting, it'll reduce the transmissions over the wire (currently there's no command line option for it).

Thanks for the tip. Didn't know about the mocha reporter for TAP.