This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Taking Report for junit

 
A Kumar
Ranch Hand
Posts: 980
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to generate reports using junit..

if i run a test for one class..
i want see it in eclipse ..IDE..the resulsts...but how to capture it as a report...
 
Jan Cumps
Bartender
Posts: 2577
11
C++ Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One posibility is to use Ant.
You can use Ant's JUnit and JUnitReport tasks to create a html report for your tests.

Regards, Jan
 
A Kumar
Ranch Hand
Posts: 980
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And how to generate it without Ant ...??
 
Jan Cumps
Bartender
Posts: 2577
11
C++ Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maven also allows you to create a report of your JUnit tests.
I am not aware of any other solution.

Regards, Jan
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you just want the failures (as opposed to a pretty report with all the tests), you could use the text runner that comes with JUnit and store the output.
 
A Kumar
Ranch Hand
Posts: 980
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everyone....

I am able to created junit reports using ant build script
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic