Thanks for supporting the opposition, Adrian. 8-)

You're welcome! However, I don't see Test::Unit as competition - and I don't mean that in a nasty way :-)

The Test::Unit philosophy is just different from Test::Class's. Not worse. For those with any experience of JUnit it's easier to adopt than having to understand Perl's TAP / Test::Harness / Test::Builder / Test::Class approach to xUnit style testing.

In some ways its better - for example it's far easier to make a new test runner with Test::Unit than it is to build something with Test::Harness::Straps. In some ways its worse - for example not being able to take advantage of the many Test::Builder based modules on CPAN. Pick whichever makes your life easier I say!

(Although I think it interesting that the latest JUnit and TestNG are, in some ways, closer to Test::Harness/Test::Class than Perl's Test::Unit with the use of attributes, adopting multiple setup/teardown methods, etc. I'd be interested to see whether Test::Unit starts adopting some of the features seen in the latest JUnit.)

T:U:Runner::XML was discussed, Andrew said it "reports in the format used by JUnit, to allow Test::Unit to work with continuous integration systems such as CruiseControl and damagecontrol".

It's the same output as Ant's JUnit task - poking around http://ant.apache.org might turn up something useful.


In reply to Re^3: Generate HTML reports from unit test results by adrianh
in thread Generate HTML reports from unit test results by gube

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.