junit results display

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

junit results display

James Rhodes-2
Hi all. Is there anything special I need to do to get junit results
generated from an ant task to display? I'm using a junit batch test in
my build.xml with a forked process and I've tried the empty string for
the todir attribute and I've tried creating the results in a "reports"
dir under workspace/myapp/. The tests run fine but I can't see the
results or the graph as illustrated on the java.net pages. What am I
missing? Thanks and though I'm obviously new to Hudson, I really like
it and can see its promise. Others in my organization may use it.

B

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: junit results display

Rhett Sutphin
Hi,

On Apr 27, 2007, at 1:22 AM, James Rhodes wrote:
> Hi all. Is there anything special I need to do to get junit results
> generated from an ant task to display? I'm using a junit batch test in
> my build.xml with a forked process and I've tried the empty string for
> the todir attribute and I've tried creating the results in a "reports"
> dir under workspace/myapp/. The tests run fine but I can't see the
> results or the graph as illustrated on the java.net pages. What am I
> missing? Thanks and though I'm obviously new to Hudson, I really like
> it and can see its promise. Others in my organization may use it.

Is your test runner set up to generate XML reports?  If not, check  
out the docs for the formatter element here:

http://ant.apache.org/manual/OptionalTasks/junit.html#nested

Once you have the XML reports, you need to give hudson their path  
(under post-build actions > Publish JUnit test result report) and it  
will aggregate the results.  Note that it won't show the graph until  
you have two builds with test results (IIRC), but the test results  
link should be available after one.

Rhett

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: junit results display

Kohsuke Kawaguchi
Administrator
The other possibility is that some tests failed and build script is
causing Ant to return non-0 exit code. This behavior is just fixed in
the next 1.105 (issue #498)

2007/4/26, Rhett Sutphin <[hidden email]>:

> Hi,
>
> On Apr 27, 2007, at 1:22 AM, James Rhodes wrote:
> > Hi all. Is there anything special I need to do to get junit results
> > generated from an ant task to display? I'm using a junit batch test in
> > my build.xml with a forked process and I've tried the empty string for
> > the todir attribute and I've tried creating the results in a "reports"
> > dir under workspace/myapp/. The tests run fine but I can't see the
> > results or the graph as illustrated on the java.net pages. What am I
> > missing? Thanks and though I'm obviously new to Hudson, I really like
> > it and can see its promise. Others in my organization may use it.
>
> Is your test runner set up to generate XML reports?  If not, check
> out the docs for the formatter element here:
>
> http://ant.apache.org/manual/OptionalTasks/junit.html#nested
>
> Once you have the XML reports, you need to give hudson their path
> (under post-build actions > Publish JUnit test result report) and it
> will aggregate the results.  Note that it won't show the graph until
> you have two builds with test results (IIRC), but the test results
> link should be available after one.
>
> Rhett
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: junit results display

James Rhodes-2
In reply to this post by Rhett Sutphin
Cool. I guess I missed the Publish Junit tests part in the app config.
I am using xml reports. I'll try it when I wake up later this am.
Thanks for the info.

B

On 4/27/07, Rhett Sutphin <[hidden email]> wrote:

> Hi,
>
> On Apr 27, 2007, at 1:22 AM, James Rhodes wrote:
> > Hi all. Is there anything special I need to do to get junit results
> > generated from an ant task to display? I'm using a junit batch test in
> > my build.xml with a forked process and I've tried the empty string for
> > the todir attribute and I've tried creating the results in a "reports"
> > dir under workspace/myapp/. The tests run fine but I can't see the
> > results or the graph as illustrated on the java.net pages. What am I
> > missing? Thanks and though I'm obviously new to Hudson, I really like
> > it and can see its promise. Others in my organization may use it.
>
> Is your test runner set up to generate XML reports?  If not, check
> out the docs for the formatter element here:
>
> http://ant.apache.org/manual/OptionalTasks/junit.html#nested
>
> Once you have the XML reports, you need to give hudson their path
> (under post-build actions > Publish JUnit test result report) and it
> will aggregate the results.  Note that it won't show the graph until
> you have two builds with test results (IIRC), but the test results
> link should be available after one.
>
> Rhett
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: junit results display

James Rhodes-2
In reply to this post by Kohsuke Kawaguchi
I think this was happening for a while too. I fixed my test failures
though and still no joy.  Thanks for the reply.

B

On 4/27/07, Kohsuke Kawaguchi <[hidden email]> wrote:

> The other possibility is that some tests failed and build script is
> causing Ant to return non-0 exit code. This behavior is just fixed in
> the next 1.105 (issue #498)
>
> 2007/4/26, Rhett Sutphin <[hidden email]>:
> > Hi,
> >
> > On Apr 27, 2007, at 1:22 AM, James Rhodes wrote:
> > > Hi all. Is there anything special I need to do to get junit results
> > > generated from an ant task to display? I'm using a junit batch test in
> > > my build.xml with a forked process and I've tried the empty string for
> > > the todir attribute and I've tried creating the results in a "reports"
> > > dir under workspace/myapp/. The tests run fine but I can't see the
> > > results or the graph as illustrated on the java.net pages. What am I
> > > missing? Thanks and though I'm obviously new to Hudson, I really like
> > > it and can see its promise. Others in my organization may use it.
> >
> > Is your test runner set up to generate XML reports?  If not, check
> > out the docs for the formatter element here:
> >
> > http://ant.apache.org/manual/OptionalTasks/junit.html#nested
> >
> > Once you have the XML reports, you need to give hudson their path
> > (under post-build actions > Publish JUnit test result report) and it
> > will aggregate the results.  Note that it won't show the graph until
> > you have two builds with test results (IIRC), but the test results
> > link should be available after one.
> >
> > Rhett
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>
> --
> Kohsuke Kawaguchi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]