AW: [OJB-developers] regression tests
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2002-03-12 14:32:16
|
Hi Fabian, =20 I'm a bit late in responding to your mail.=20 But I'm really interested in this kind of thing, as the presentation of results is quite readable and provides much better information than the console based version. =20 I'll try to integrate this target into the OJB build.xml. =20 Do we need the optional ant targets for JUNIT to do this? =20 thanks, =20 Thomas -----Urspr=FCngliche Nachricht----- Von: Fabian B=FCttner [mailto:f_b...@ma...] Gesendet: Dienstag, 19. Februar 2002 19:11 An: obj...@li... Betreff: [OJB-developers] regression tests Hello, =20 (Currently ojb uses the java task to perform regression tests) =20 I'm using the junit/junitreport task when testing ojb.=20 The junitreport task summarizes the junit output (format is xml) and transforms it into html.=20 I find that the html presentation of the regression tests is much more readable than the pure text output of the currently used textual = TestRunner. =20 I have attached a zip file containing an example junitreport result = (set of html files). Click on AllTests to expand the broker tests. There can be multiple tests in the generated site (e.g. broker, odmg, jdo ...).=20 =20 Is there any interest in doing it this way in ojb? =20 Below is a test target I have used: =20 <target name=3D"junit_reports" depends=3D"main, tests"> <junit fork=3D"yes" dir=3D"${test}/ojb"> <classpath> <pathelement path=3D"${runtime_classpath}" /> </classpath> <formatter type=3D"xml" /> <test name=3D"test.ojb.broker.AllTests"/> <! -- test name=3D"test.ojb.odmg.AllTests"/ --> <! -- test name=3D"additional tests..."/ --> </junit> <junitreport> <fileset dir=3D"."> <include name=3D"TEST-*.xml"/> </fileset> <report format=3D"frames" toDir=3D"."/> </junitreport> </target> =20 Fabian B=FCttner green@remove_no_spam.informatik.uni-bremen.de <mailto:green@remove_no_spam.informatik.uni-bremen.de>=20 =20 |