Re: AW: [OJB-developers] regression tests
Brought to you by:
thma
From: Fabian <f_b...@ma...> - 2002-03-26 17:51:54
|
Well now I am the one responding late, since I was on holidays for two weeks= :) I need three additional jar files to run the JUnitReport task jakarta-ant-1.4.1-optional.jar from: http://jakarta.apache.org/ant . This archive contains the task. And xalan.jar xml-apis.jar from: http://xml.apache.org/xalan-j/ . The first one contains the xalan xml= =20 transformator, the second the xml apis for several apache projects. As I mentioned in my last mail, ojb currently uses a java-task to run the=20 regression tests. There is a special junit-task in the optional ant jar= file. Using this task should make the build file flexible I think. This task can= =20 run complete suites as well as single tests (see documentation at the ant=20 site) and can produce xml output as well as standard text. The JUnitReport generated web site (other output than html can easily made= =20 using a custom xslt-file for the xml transformation) reflects the choosen=20 test structure (suites vs. single tests). If there is interest I can write some new targets for build.xml that use=20 the <JUnit> and <JUnitReport> tasks. Fabian B=FCttner At 15:31 12.03.02 +0100, Mahler Thomas wrote: >Hi Fabian, > >I'm a bit late in responding to your mail. >But I'm really interested in this kind of thing, as the presentation of=20 >results is quite readable and provides much better information than the=20 >console based version. > >I'll try to integrate this target into the OJB build.xml. > >Do we need the optional ant targets for JUNIT to do this? > >thanks, > >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, > >(Currently ojb uses the java task to perform regression tests) > >I'm using the junit/junitreport task when testing ojb. >The junitreport task summarizes the junit output (format is xml) and=20 >transforms it into html. >I find that the html presentation of the regression tests is much more=20 >readable than the pure text output of the currently used textual= TestRunner. > >I have attached a zip file containing an example junitreport result (set=20 >of html files). Click on AllTests to expand the broker tests. There can be= =20 >multiple tests in the generated site (e.g. broker, odmg, jdo ...). > >Is there any interest in doing it this way in ojb? > >Below is a test target I have used: > > <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> > >Fabian B=FCttner ><mailto:green@remove_no_spam.informatik.uni-bremen.de>green@remove_no_spam.= informatik.uni-bremen.de=20 > > |