The document states about the formatter: "Output will always be sent to a file unless you set the usefile attribute to false". If there are no formatters there will be no output at all unless there is the printsummary attribute set (the printsummary attribute sets a special formatter to print the data via the Ant logger)
Is that the printsummary attribute documentation that is confusing to you ? ps: I think ant-users is more appropriate -- St�phane Bailliez Software Engineer, Paris - France iMediation - http://www.imediation.com Disclaimer: All the opinions expressed above are mine and not those from my company. > -----Original Message----- > From: Jim Downing [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 27, 2001 6:53 PM > To: [EMAIL PROTECTED] > Subject: Junit output behaviour > > > Hi, > I hope this is the appropriate place to post this: - > I've just been using the junit test for the first time, and I > couldn't get > the task to write a results file until I included a formatter > element to the > task. From the docs it seemed like this wasn't the intended behaviour. > Configuration is : Ant 1.3, junit3.7, jdk1.3, win98. > > For example: - > <junit haltonfailure="yes" printsummary="yes"> > <classpath> > <pathelement path="classes"/> > </classpath> > <batchtest> > <fileset dir="classes" > includes="com/paribus/hemlatta/ericgeneric/tests/*Tests.class"/> > </batchtest> > </junit> > > Wouldn't give me an output file whereas: - > > <junit haltonfailure="yes" printsummary="yes"> > <classpath> > <pathelement path="classes"/> > </classpath> > <formatter type="plain"/> > <batchtest> > <fileset dir="classes" > includes="com/paribus/hemlatta/ericgeneric/tests/*Tests.class"/> > </batchtest> > </junit> > > Would. > > jim >
