• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse + Junit 4.4 + JunitReport

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, i�m trying to generate some reports(html or pdf), i�m aware that this can be done with ant, in fact i�m doing this right now, but writing an ant script and calling it from the command line is not exatcly what i need, since i�m working with eclipse and writting and excecuting the tests from it�s built in test runner, i want to generate the reports from eclipse each time i run the tests and keep saving the results, i dont know how to do this, i know how to work with ant tasks, but i dont know how to work with ant tasks from within eclipse.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jorge,
You can run Ant scripts from Eclipse using the "External Tools" menu. I'm going to move this to our IDEs forum since it is about Eclipse/Ant interaction rather than testing.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Eclipse Java perspective knows about Ant and has integrated support, so you don't need to run it as an external tool. Just right-click on the build.xml file in the Navigator view and select the appropriate Ant run option.

Some ant scripts may require external information such as command-line properties or classpaths. The integrated Ant support supplies a dialog that can be used to configure that kind of stuff.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tim Holloway:
The Eclipse Java perspective knows about Ant and has integrated support, so you don't need to run it as an external tool.



Well, the Eclipse's Ant support actually *is* filed under "external tools". So I guess you and Jeanne are talking about the same thing.

I don't think there is an easy way to hook into the Eclipse JUnit runner, though. For that, you'd probably write an Eclipse plugin or something.
reply
    Bookmark Topic Watch Topic
  • New Topic