hudson 1.60: Maven2 module test failure ignored

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

hudson 1.60: Maven2 module test failure ignored

qwang
Hi,

I am new to Hudson, using 1.60 and set up a Maven2 project with
multiple modules. The Maven version is 2.0.7. I am also using
sure-fire Maven plugin to run the JUnit tests.

My problem is that Hudson is ignoring sure-fire test failures in some
of the modules. ie. although some tests are failing in module A (no
other modules have compilation dependency on module A), the build
keeps going to report successful for the entire project. If I invoke
the same Maven build from the command line manually, the build fails
right away after the test failures.

I do NOT have <testFailureIgnore>true</testFailureIgnore> in the
sure-fire plugin configuration. So I believe the command line behavior
is correct.

Does this sound like a bug of Hudson? Any workarounds?

Thanks,
Qingtian

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hudson 1.60: Maven2 module test failure ignored

qwang
Sorry the version should be 1.160. And I am only running the top level
pom of the entire project.

Thanks,
-Qingtian


On Dec 17, 2007 5:40 PM, Qingtian Wang <[hidden email]> wrote:

> Hi,
>
> I am new to Hudson, using 1.60 and set up a Maven2 project with
> multiple modules. The Maven version is 2.0.7. I am also using
> sure-fire Maven plugin to run the JUnit tests.
>
> My problem is that Hudson is ignoring sure-fire test failures in some
> of the modules. ie. although some tests are failing in module A (no
> other modules have compilation dependency on module A), the build
> keeps going to report successful for the entire project. If I invoke
> the same Maven build from the command line manually, the build fails
> right away after the test failures.
>
> I do NOT have <testFailureIgnore>true</testFailureIgnore> in the
> sure-fire plugin configuration. So I believe the command line behavior
> is correct.
>
> Does this sound like a bug of Hudson? Any workarounds?
>
> Thanks,
> Qingtian
>

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hudson 1.60: Maven2 module test failure ignored

Kohsuke Kawaguchi
Administrator
In reply to this post by qwang

I think this is a variation of
https://hudson.dev.java.net/issues/show_bug.cgi?id=959

Qingtian Wang wrote:

> Hi,
>
> I am new to Hudson, using 1.60 and set up a Maven2 project with
> multiple modules. The Maven version is 2.0.7. I am also using
> sure-fire Maven plugin to run the JUnit tests.
>
> My problem is that Hudson is ignoring sure-fire test failures in some
> of the modules. ie. although some tests are failing in module A (no
> other modules have compilation dependency on module A), the build
> keeps going to report successful for the entire project. If I invoke
> the same Maven build from the command line manually, the build fails
> right away after the test failures.
>
> I do NOT have <testFailureIgnore>true</testFailureIgnore> in the
> sure-fire plugin configuration. So I believe the command line behavior
> is correct.
>
> Does this sound like a bug of Hudson? Any workarounds?
>
> Thanks,
> Qingtian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Loading...