in reply to Re^2: Generate HTML reports from unit test results
in thread Generate HTML reports from unit test results

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.

  • Comment on Re^3: Generate HTML reports from unit test results