Hi Peter,

Thanks for your answer. My team has a number of scripts that parse JUnit 
output-- for example a script that does some baselining actions to the file 
system. Some of them parse the output of the text reports. My migration would 
be faster and less error prone if I didn't have to change (and find!) those 
scripts. I was hoping that Gradle was using ant to run its tests, but looking 
at the gradle debug output it's using its own implementation. It sounds pretty 
involved to write my own listener =(. Maybe I could write a XSLT to take the 
xml report and generate a text report (as I think they contain the same data).

Cheers,

Andy

On Feb 24, 2012, at 5:05 PM, Peter Niederwieser wrote:

> Gradle doesn't offer a plain-text test report (why are you looking for one?).
> What you can do is to add a test listener (`test.addTestListener(...)`) and
> generate a text report yourself.
> 
> --
> Peter Niederwieser
> Principal Engineer, Gradleware 
> http://gradleware.com
> Creator, Spock Framework 
> http://spockframework.org
> Twitter: @pniederw
> 
> 
> Andrew Spina wrote
>> 
>> Hi All,
>> 
>> I'm migrating my build from ant to Gradle and trying to get a plain-text
>> report out of my tests. In ant I have a target like this:
>> 
>> 
>>    <target name="test" depends="deliver, cleantests">
>>        <junit printsummary="yes" maxmemory="1024m" haltonfailure="yes"
>> dir="${apt}" timeout="1800000">
>>          <....SNIP.....>
>>            <formatter type="plain"/>
>>            <formatter type="xml"/>
>>          <....SNIP.....>
>>        </junit>
>>    </target>
>> 
>> Gradle is generating an xml report and an HTML report already. I've done
>> some Google hunting and haven't been able to find any tips on how to do
>> this.
>> 
>> Any suggestions?
>> 
>> Cheers,
>> 
>> Andy
>> 
> 
> 
> --
> View this message in context: 
> http://gradle.1045684.n5.nabble.com/Can-Gradle-generate-a-plain-formatted-junit-report-tp5513404p5514083.html
> Sent from the gradle-user mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>    http://xircles.codehaus.org/manage_email
> 
> 


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to