| Author |
Junit reports for Hudson
|
ParagM Pmahajan
Greenhorn
Joined: Nov 16, 2011
Posts: 10
|
|
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
internet detective
Marshal
Joined: May 26, 2003
Posts: 26173
|
|
|
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.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
ParagM Pmahajan
Greenhorn
Joined: Nov 16, 2011
Posts: 10
|
|
|
Thanks Jeanne .
|
 |
 |
|
|
subject: Junit reports for Hudson
|
|
|