On Thu, 24 Jan 2002 14:18, Leif Mortenson wrote:
> If you run build test on Excalibur, the output can be a little
> overwhelming. It is not easy to get a feel for the overall state of the
> project without looking over each test result one by one, making sure
> that they passed.
>
> Luckily ant has the JunitReport task, which creates a beautiful set of
> html reports clearly showing the results of the test suite.
>
> I wanted to ask before making this change because it would require that
> the test outfiles be changed from text files to xml files.
>
> I'll start with my +1

I would prefer to have at least the option to do text reports. The main 
reason is I tend to run the tests from inside the editor and it is far easer 
to tell which things are working or not while developing a particular 
package. So maybe we could add  a property "build.xml-reports" or something 
to determine which version we run.

Alternatively we could have a "single test target" which only tests a single 
junit class (passed in from command line via 
-Djunit.test=org.excalibur.MyTest) and uses the text formatter?

Or something else?

Thoughts?

>
> Here is the diff of build.xml if you would like to try it out:
>
> cvs -z3 diff build.xml (in directory E:\Jakarta\jakarta-avalon-excalibur\)
> Index: build.xml
> ===================================================================
> RCS file: /home/cvs/jakarta-avalon-excalibur/build.xml,v
> retrieving revision 1.88
> diff -r1.88 build.xml
> 302c302
> < <formatter type="plain"/>
> ---
>
> > <formatter type="xml"/>
>
> 327c327,333
> <
> ---
>
> > <junitreport todir="${build.reports}">
> > <fileset dir="${build.reports}">
> > <include name="TEST-*.xml"/>
> > </fileset>
> > <report format="frames" todir="${build.reports}/html"/>
> > </junitreport>
>
> After running build test, look at build/reports/html/index.html in your
> browser.
>
> Cheers,
> Leif

-- 
Cheers,

Pete

Doubt is not a pleasant condition, but certainty is absurd.
                -- Voltaire

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to