Re: surefire doesn't detect failed tests. (forkMode = always and jdk1.4)

2008-07-28 Thread Stefan Seidel
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
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.   [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: surefire doesn't detect failed tests. (forkMode = always and jdk1.4)

2008-07-28 Thread Benoit Decherf
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: surefire doesn't detect failed tests. (forkMode = always and jdk1.4)

2008-07-28 Thread Benoit Decherf

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



surefire doesn't detect failed tests. (forkMode = always and jdk1.4)

2008-07-25 Thread Benoit Decherf

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]