Fail maven multi module build when surefire goes OOM

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

Fail maven multi module build when surefire goes OOM

Debraj Manna
We use maven-surefire for executing tests in maven multi-module project. We
use fork count of 1. We also specify certain xmx value in surefire
configuration.

Now when certain module goes OOM during test execution surefire execution
of that JVM module terminates but build continue with the execution of
tests in other modules.

Can someone let me know if it is possible to fail the maven top level build
when surefire crashes due to OOM?

Note if there is any test assertion failure then I would like to continue
with the execution of other tests like it is now, so that I get a complete
report of all the test assertion failure in all modules.
Reply | Threaded
Open this post in threaded view
|

Re: Fail maven multi module build when surefire goes OOM

Debraj Manna
Just to add the tests are executed on jenkins so fail-on-end is set to true.

On Sun, Apr 19, 2020 at 8:37 PM Debraj Manna <[hidden email]>
wrote:

> We use maven-surefire for executing tests in maven multi-module project.
> We use fork count of 1. We also specify certain xmx value in surefire
> configuration.
>
> Now when certain module goes OOM during test execution surefire execution
> of that JVM module terminates but build continue with the execution of
> tests in other modules.
>
> Can someone let me know if it is possible to fail the maven top level
> build when surefire crashes due to OOM?
>
> Note if there is any test assertion failure then I would like to continue
> with the execution of other tests like it is now, so that I get a complete
> report of all the test assertion failure in all modules.
>
Reply | Threaded
Open this post in threaded view
|

Re: Fail maven multi module build when surefire goes OOM

Debraj Manna
Anyone any thoughts on this one?

On Sun, Apr 19, 2020 at 10:49 PM Debraj Manna <[hidden email]>
wrote:

> Just to add the tests are executed on jenkins so fail-on-end is set to
> true.
>
> On Sun, Apr 19, 2020 at 8:37 PM Debraj Manna <[hidden email]>
> wrote:
>
>> We use maven-surefire for executing tests in maven multi-module project.
>> We use fork count of 1. We also specify certain xmx value in surefire
>> configuration.
>>
>> Now when certain module goes OOM during test execution surefire execution
>> of that JVM module terminates but build continue with the execution of
>> tests in other modules.
>>
>> Can someone let me know if it is possible to fail the maven top level
>> build when surefire crashes due to OOM?
>>
>> Note if there is any test assertion failure then I would like to continue
>> with the execution of other tests like it is now, so that I get a complete
>> report of all the test assertion failure in all modules.
>>
>