Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Junit reports for Hudson

 
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
Marshal
Posts: 34178
340
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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic