You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Benoit Decherf <de...@yahoo-inc.com> on 2008/07/25 14:58:57 UTC
surefire doesn't detect failed tests. (forkMode = always and jdk1.4)
Hi
When I execute mvn deploy (from continuum), The surefire reports show
that there are errors, but the execution doesn't fail :
In the output I have:
Results :
Failed tests:
Tests in error:
Tests run: 212, Failures: 24, Errors: 8, Skipped: 0
[INFO] [jar:jar]
That's strange. It show that some tests fails, but it doesn't show which
tests fails and it doesn't fails the execution.
The exact command is :
mvn clean deploy -e --batch-mode
The configuration to reproduce it is forkMode=always and jdk1.4.
If I use jdk1.6, it works and if I use forkMode=once it also works. (but
the list of failed tests is still missing).
Can I open a bug in this ?
Benoit
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: surefire doesn't detect failed tests. (forkMode = always and
jdk1.4)
Posted by Benoit Decherf <de...@yahoo-inc.com>.
I can reproduce this using the quickstart archetype :
just change the assertion (assertTrue( false ) to make UT fail)
And execute:
$ export JAVA_HOME=/usr/java/j2sdk1.4.2_18/
$ mvn package -DforkMode=always
Surefire show that UT fails, but it continue with the build.
Benoit
Benoit Decherf wrote:
> We don't have any System.exit() in the code. And as I told you, this
> bug only appear with forkMode=always and jdk1.4.
>
> Benoit
>
> Stefan Seidel wrote:
>> I have sometimes experienced this when a test did System.exit(), thus
>> shutting down the Surefire JVM.
>>
>> Stefan
>>
>> Benoit Decherf wrote:
>>> Hi
>>>
>>> When I execute mvn deploy (from continuum), The surefire reports
>>> show that there are errors, but the execution doesn't fail :
>>> In the output I have:
>>>
>>> Results :
>>>
>>> Failed tests:
>>> Tests in error:
>>>
>>> Tests run: 212, Failures: 24, Errors: 8, Skipped: 0
>>>
>>> [INFO] [jar:jar]
>>>
>>>
>>> That's strange. It show that some tests fails, but it doesn't show
>>> which tests fails and it doesn't fails the execution.
>>>
>>> The exact command is :
>>> mvn clean deploy -e --batch-mode
>>>
>>> The configuration to reproduce it is forkMode=always and jdk1.4.
>>> If I use jdk1.6, it works and if I use forkMode=once it also works.
>>> (but the list of failed tests is still missing).
>>>
>>> Can I open a bug in this ?
>>>
>>>
>>> Benoit
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: surefire doesn't detect failed tests. (forkMode = always and
jdk1.4)
Posted by Benoit Decherf <de...@yahoo-inc.com>.
We don't have any System.exit() in the code. And as I told you, this bug
only appear with forkMode=always and jdk1.4.
Benoit
Stefan Seidel wrote:
> I have sometimes experienced this when a test did System.exit(), thus
> shutting down the Surefire JVM.
>
> Stefan
>
> Benoit Decherf wrote:
>> Hi
>>
>> When I execute mvn deploy (from continuum), The surefire reports show
>> that there are errors, but the execution doesn't fail :
>> In the output I have:
>>
>> Results :
>>
>> Failed tests:
>> Tests in error:
>>
>> Tests run: 212, Failures: 24, Errors: 8, Skipped: 0
>>
>> [INFO] [jar:jar]
>>
>>
>> That's strange. It show that some tests fails, but it doesn't show
>> which tests fails and it doesn't fails the execution.
>>
>> The exact command is :
>> mvn clean deploy -e --batch-mode
>>
>> The configuration to reproduce it is forkMode=always and jdk1.4.
>> If I use jdk1.6, it works and if I use forkMode=once it also works.
>> (but the list of failed tests is still missing).
>>
>> Can I open a bug in this ?
>>
>>
>> Benoit
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: surefire doesn't detect failed tests. (forkMode = always and
jdk1.4)
Posted by Stefan Seidel <ss...@vub.de>.
I have sometimes experienced this when a test did System.exit(), thus
shutting down the Surefire JVM.
Stefan
Benoit Decherf wrote:
> Hi
>
> When I execute mvn deploy (from continuum), The surefire reports show
> that there are errors, but the execution doesn't fail :
> In the output I have:
>
> Results :
>
> Failed tests:
> Tests in error:
>
> Tests run: 212, Failures: 24, Errors: 8, Skipped: 0
>
> [INFO] [jar:jar]
>
>
> That's strange. It show that some tests fails, but it doesn't show which
> tests fails and it doesn't fails the execution.
>
> The exact command is :
> mvn clean deploy -e --batch-mode
>
> The configuration to reproduce it is forkMode=always and jdk1.4.
> If I use jdk1.6, it works and if I use forkMode=once it also works. (but
> the list of failed tests is still missing).
>
> Can I open a bug in this ?
>
>
> Benoit
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
best regards,
Stefan Seidel
software developer
________________________
VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel. +49 (341) 9 60 50 07
fax. +49 (341) 9 60 50 92
mail. sseidel@vub.de
web. www.vub.de
HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org