Hi Dennis,

Dennis Ryan wrote:
I dont know who is responsible for these things,

I shouldn't admit it, but it's usually me...


but I have what i think is
a minor request. What i'd like, and what i think would be useful to others
is a html formatted junit report. The plaintext output in my opinion is not
as readable. I've made the required changes below, basically it's just
changing the formatter from plain to xml, and adding a junitreport task.

I thought about this before. The reason why I decided not to use the html output was that it requires additional libraries. As far as I remember at least the ant optional.jar and xalan.jar. I just did not like to ship to additional heavy weight jars only for pretty printing the junit logs. (Which should just show a green light, as we generally ship only 0 failure 0 error releases).


But I will place your snippet into the contributions package, so that other users can benefit from your script.

thanks for your contribution,
Thomas




Regards, Dennis



<target name="junit-no-compile-no-prepare" > <junit printsummary="yes" fork="yes" dir="${build.test}/ojb"> <jvmarg value="-DOJB.bootLogLevel=INFO" /> <classpath refid="runtime-classpath"/> <formatter type="xml" /> <test name="org.apache.ojb.broker.AllTests" haltonfailure="no" outfile="target/test/tests-broker" > </test>


<test name="org.apache.ojb.odmg.AllTests" haltonfailure="no" outfile="target/test/tests-odmg" > </test> <test name="org.apache.ojb.soda.AllTests" haltonfailure="no" outfile="target/test/tests-soda" > </test>

        </junit>
        <junitreport todir="target/test/">
            <fileset dir=".">
                <include name="**/tests-*.xml"/>
            </fileset>
            <report format="frames" todir="doc/tests"/>
        </junitreport>
</target>




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.



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





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



Reply via email to