This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Junit reports for Hudson  RSS feed

 
ParagM Pmahajan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am able to successfully run my JUnit test suite from the command line and now I want run these tests from Hudson.

However , for Hudson to generate the reports , it needs a results file (I think in xml format) .

How do I generate a results file from JUnit ? I am using the following command to run the tests :
java com.nvidia.tests.TestSuite1

I am not using any build tool as I compile the test suite with javac and run with java.

Thanks in advance .
Parag.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That xml file is generated when you run junit from ant or maven. Since you aren't using any build tool now, I recommend Ant. That way you don't have to restructure your project/use the Maven lifecycle. With Ant, you can write a build script that just executes the <junit> task.
 
ParagM Pmahajan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne .
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!