Forum: Ruby Can Test/Unit output in XML?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F948f711c9596cc872a66e158d67cfc0?d=identicon&s=25 Maung Aung (maung)
on 2007-07-19 22:35
Hi,

Is there any way that I can get test/unit output file in XML format? Any
helpful advice would be very appreciated.

Thanks,
maung
18d3c84ca5a017fe3e96490afaea28aa?d=identicon&s=25 Richard Conroy (Guest)
on 2007-07-20 13:43
(Received via mailing list)
On 7/19/07, Maung Aung <maung@atc-onlane.com> wrote:
> Hi,
>
> Is there any way that I can get test/unit output file in XML format? Any
> helpful advice would be very appreciated.

There was a TestReport project on RubyForge, but it's been pulled or
discontinued. I am looking for some kind of test-reporting tool myself
actually. Reporting starts to get pretty important when you are
dealing with tests written by QA.
97550977337c9f0a0e1a9553e55bfaa0?d=identicon&s=25 Jano Svitok (Guest)
on 2007-07-20 15:31
(Received via mailing list)
On 7/19/07, Maung Aung <maung@atc-onlane.com> wrote:
> Hi,
>
> Is there any way that I can get test/unit output file in XML format? Any
> helpful advice would be very appreciated.

If there's nothing ready, it should not be hard to createa custom
runner/outputter that will write xml.

Have a look at test/unit/ui/console/testrunner.rb how it writes to
console for start.

J.
97550977337c9f0a0e1a9553e55bfaa0?d=identicon&s=25 Jano Svitok (Guest)
on 2007-07-20 16:54
(Received via mailing list)
On 7/20/07, Jano Svitok <jan.svitok@gmail.com> wrote:
> console for start.
I have had a look and it's easy to do. The "hardest" part is to define
xml scheme.
Then use xmlbuilder or anything else, and redefine add_fault (two
types here, errors and failures), started, finished, maybe
test_started and test_finished.

J.
Da724ab609d3c2880f09424397ab284c?d=identicon&s=25 andy sipe (Guest)
on 2007-07-20 17:44
(Received via mailing list)
http://caldersphere.rubyforge.org/ produces XML files that are
compatible
with a lot of common CI systems, it may meet your needs.

There is another XML logger, but the name escapes me atm.

--andy
F948f711c9596cc872a66e158d67cfc0?d=identicon&s=25 Maung Aung (maung)
on 2007-07-20 18:42
Thanks to all for your suggestions and especially to Andy. It might work
well. Let me try. :-)

maung


andy sipe wrote:
> http://caldersphere.rubyforge.org/ produces XML files that are
> compatible
> with a lot of common CI systems, it may meet your needs.
>
> There is another XML logger, but the name escapes me atm.
>
> --andy
This topic is locked and can not be replied to.