• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse + Junit 4.4 + JunitReport

 
Jorge Bendahan
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • 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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34656
366
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic