go-check/check — pull request #29 by elgris (2014-12-31 08:34:35+00:00)
Title: xUnit reports support and more

Hello!
Here I'd like to propose some ideas for gocheck :). Please provide your feedback, here's a lot of things to discuss.
1. Major thing: this PR brings support for xUnit reports **and aimed to close #19**. It adds run option `check.r` where `plain` or `xunit` reporter can be specified. Major change is `outputWriter` is now interface. This approach allows support of different kinds of reporters with no extra pain. Also it does not break existing tests. Although, I'm still thinking that "reporter" should belong to separate package, but it's too difficult to implement right now. Just because report's output "it depends a bit on the result" (c) :) and refactoring of output requires radical changes in gocheck.
2. Since golang testing framework can produce its own output (and pollute stdout), run option `check.output` was introduced as well. It allows to output report to separate file. For xUnit we will get clean XML output in separate document that can be read by Jenkins, for instance.

Please let me know what you think :)

Regards,
Ivan