joakimkarlsson/igloo — pull request #1 by bcachet (2012-08-23 15:23:42+00:00)
Title: XUnitOutput

Hello,

I added XUnit support to Outputters
To be able to do it, I refactor TestResultsOutput to pass output stream to the constructor. By default we use standard output. This way, we can also generate output file (usefull when dealing with continuous integration systems like Jenkins or Bitten). The generated XML stream is XUnit compliant (tested on both Jenkins and bitten systems at least).

I have also created a TestResult class from which SucceededTestResult and FailedTestResult inherit. This way TestResults class can return a list of all the tests (succeeded and tested). When creating outputters, we can loop in this list and only treat FailedTestResult differently.

I hope you will find these modifications usefull

Sincerely

Bertrand Cachet

PS: I just take the opportunity to thank you. Igloo is a really nice piece of software.
I integrated it to my cpp_template and use it in all my C++ projects.