You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by tomiq <to...@gmail.com> on 2006/08/16 17:21:53 UTC
weird surefire test failure while all tests succeed
Hi everyone there is some weird surefire test issue running on my computer.
The problem is that I have 5 nonFailing(!) TestCase tests. When I run mvn
test on the project surefire first runs the tests with no failure (Tests
run: 95, Failures: 0, Errors: 0, Skipped: 0) then writes "There are test
failures." so the build fails too (even if -fn or -fae are enabled - I need
the project's maven package).
I encounred CHECKSUM FAILED warning while downloading some maven plugins
from repository :
org/apache/maven/surefire/surefire-providers/2.0/surefire-providers-2.0.pom,
but it happens on every mirror I tried. I also tried to redownload the whole
repository - nothing works.
I'm using maven2.0.4 on sunJava1.5_06 on winXPsp2 (and I can provide detail
info if it is needed).
So post if you have something to say about the matter. Thanx
tomas r
btw: some mvn output is attached:
http://www.nabble.com/user-files/332/error.log error.log
--
View this message in context: http://www.nabble.com/weird-surefire-test-failure-while-all-tests-succeed-tf2116002.html#a5834527
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: weird surefire test failure while all tests succeed
Posted by franz see <fr...@gmail.com>.
tomiq wrote:
>
> Hi everyone there is some weird surefire test issue running on my
> computer.
> The problem is that I have 5 nonFailing(!) TestCase tests. When I run mvn
> test on the project surefire first runs the tests with no failure (Tests
> run: 95, Failures: 0, Errors: 0, Skipped: 0) then writes "There are test
> failures." so the build fails too (even if -fn or -fae are enabled - I
> need the project's maven package).
> [EDIT] surefire tests pass only if
> <testFailureIgnore>true</testFailureIgnore> is set in the
> maven-surefire-plugin's configuration.
>
> I encounred CHECKSUM FAILED warning while downloading some maven plugins
> from repository :
> org/apache/maven/surefire/surefire-providers/2.0/surefire-providers-2.0.pom,
> but it happens on every mirror I tried. I also tried to redownload the
> whole repository - nothing works.
> I'm using maven2.0.4 on sunJava1.5_06 on winXPsp2 (and I can provide
> detail info if it is needed).
> So post if you have something to say about the matter. Thanx
>
> tomas r
>
> btw: some mvn output is attached:
> http://www.nabble.com/user-files/332/error.log error.log
>
odd....have you tried isolating which test case is failing? you can add
-Dtest=[test case] to specify which test to run.
--
View this message in context: http://www.nabble.com/weird-surefire-test-failure-while-all-tests-succeed-tf2116002.html#a5844209
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: weird surefire test failure while all tests succeed
Posted by berndq <be...@gmx.net>.
Hi tomiq :
> Thanx :) It's useful, but it is just a workaround - if this option is enabled
> then also regulary failing tests are treated succesful so the maven build
> continues. These tests are quite simple and work fine among the team so I
> suppose there is a bug somewhere (in surefire maven plugin(?)).
> The issue that surefire's tests fail at global while none is failing repeats
> on my machine on every project I tried to test with maven.
> However I will try the latest surefire snapshot if I get rid of proper maven
> configuration. (so it downloads and installs the snapshot itself - can you
> point me to the place where these information is stored? thanx.) If it
> doesn't work I will try to debug surefire plugin.
Looking at surefire plugin the code is really simple.
Just guessing: One way I can think of a false negative is that the
execution of one
of your tests fails (class loading problems, ...) and therefore the
tests fail globally.
Do all of your tests get executed? Have you tried to remove some of
them temporarily?
Have you tried mvn -e or mvn -X?
I do not know how this snapshot thing works in detail, but I
think this is a starting point:
http://docs.codehaus.org/display/MAVENUSER/Patching+Maven+Plugins
Bernd
> berndq wrote:
>> you can use
>> mvn -Dmaven.test.failure.ignore=true test
>> to ignore test failures
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: weird surefire test failure while all tests succeed
Posted by franz see <fr...@gmail.com>.
tomiq wrote:
>
> Thanx :) It's useful, but it is just a workaround - if this option is
> enabled then also regulary failing tests are treated succesful so the
> maven build continues. These tests are quite simple and work fine among
> the team so I suppose there is a bug somewhere (in surefire maven
> plugin(?)).
> The issue that surefire's tests fail at global while none is failing
> repeats on my machine on every project I tried to test with maven.
> However I will try the latest surefire snapshot if I get rid of proper
> maven configuration. (so it downloads and installs the snapshot itself -
> can you point me to the place where these information is stored? thanx.)
> If it doesn't work I will try to debug surefire plugin.
>
> berndq wrote:
>>
>> you can use
>> mvn -Dmaven.test.failure.ignore=true test
>> to ignore test failures
>>
>
>
Good day to you, tomiq,
The latest builds are in [1], and their source code is in [2]...specifically
for maven-surefire-plugin, the latest build is in [3] while its source code
is in [4]. You might also want to take a look at the latest documentation
(which is still being reviewed) which is [5].
[1] http://people.apache.org/
[2] http://svn.apache.org/repos/asf/
[3]
http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-surefire-
[4]
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-surefire-plugin/
[5] http://people.apache.org/~aramirez/maven-surefire-plugin/
Thanks,
Franz
--
View this message in context: http://www.nabble.com/weird-surefire-test-failure-while-all-tests-succeed-tf2116002.html#a5867408
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: weird surefire test failure while all tests succeed
Posted by tomiq <to...@gmail.com>.
Thanx :) It's useful, but it is just a workaround - if this option is enabled
then also regulary failing tests are treated succesful so the maven build
continues. These tests are quite simple and work fine among the team so I
suppose there is a bug somewhere (in surefire maven plugin(?)).
The issue that surefire's tests fail at global while none is failing repeats
on my machine on every project I tried to test with maven.
However I will try the latest surefire snapshot if I get rid of proper maven
configuration. (so it downloads and installs the snapshot itself - can you
point me to the place where these information is stored? thanx.) If it
doesn't work I will try to debug surefire plugin.
berndq wrote:
>
> you can use
> mvn -Dmaven.test.failure.ignore=true test
> to ignore test failures
>
--
View this message in context: http://www.nabble.com/weird-surefire-test-failure-while-all-tests-succeed-tf2116002.html#a5866246
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: weird surefire test failure while all tests succeed
Posted by berndq <be...@gmx.net>.
you can use
mvn -Dmaven.test.failure.ignore=true test
to ignore test failures
Bernd
> Hi everyone there is some weird surefire test issue running on my computer.
> The problem is that I have 5 nonFailing(!) TestCase tests. When I run mvn
> test on the project surefire first runs the tests with no failure (Tests
> run: 95, Failures: 0, Errors: 0, Skipped: 0) then writes "There are test
> failures." so the build fails too (even if -fn or -fae are enabled - I need
> the project's maven package).
> I encounred CHECKSUM FAILED warning while downloading some maven plugins
> from repository :
> org/apache/maven/surefire/surefire-providers/2.0/surefire-providers-2.0.pom,
> but it happens on every mirror I tried. I also tried to redownload the whole
> repository - nothing works.
> I'm using maven2.0.4 on sunJava1.5_06 on winXPsp2 (and I can provide detail
> info if it is needed).
> So post if you have something to say about the matter. Thanx
>
> tomas r
>
> btw: some mvn output is attached:
> http://www.nabble.com/user-files/332/error.log error.log
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: weird surefire test failure while all tests succeed
Posted by tomiq <to...@gmail.com>.
Well I have to be sorry for not to investigate the issue I wrote about.
If the issue is the same all your tests really successfull are (big
admires). In my opinion this issue comes most likely from the corrupted OS
as like the one I'm running on (xp sp2) or some other hidden cause, surely
not from unit tests.
Maybe it's time to start debugging... but I'm a bit lazy at one time or
distracted at the other.
kapadia wrote:
>
> Has anybody figured this issue out? I'm experiencing the exact same
> problem and I looked at the surefire reports
> and did not find any failures... Also I have over 1200 unit tests so
> trying to isolate one is not feasible (plus I do not believe there are
> actually any failures).
>
> Any help would be appreciated.
>
> Thanks,
> Sujan
>
--
View this message in context: http://www.nabble.com/weird-surefire-test-failure-while-all-tests-succeed-tf2116002s177.html#a9507420
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] weird surefire test failure while all tests succeed
Posted by kapadia <sa...@gmail.com>.
Has anybody figured this issue out? I'm experiencing the exact same problem
and I looked at the surefire reports
and did not find any failures... Also I have over 1200 unit tests so trying
to isolate one is not feasible (plus I do not believe there are actually any
failures).
Any help would be appreciated.
Thanks,
Sujan
tomiq wrote:
>
> Hi everyone there is some weird surefire test issue running on my
> computer.
> The problem is that I have 5 nonFailing(!) TestCase tests. When I run mvn
> test on the project surefire first runs the tests with no failure (Tests
> run: 95, Failures: 0, Errors: 0, Skipped: 0) then writes "There are test
> failures." so the build fails too (even if -fn or -fae are enabled - I
> need the project's maven package).
> [EDIT] surefire tests pass only if
> <testFailureIgnore>true</testFailureIgnore> is set in the
> maven-surefire-plugin's configuration.
>
> I encounred CHECKSUM FAILED warning while downloading some maven plugins
> from repository :
> org/apache/maven/surefire/surefire-providers/2.0/surefire-providers-2.0.pom,
> but it happens on every mirror I tried. I also tried to redownload the
> whole repository - nothing works.
> I'm using maven2.0.4 on sunJava1.5_06 on winXPsp2 (and I can provide
> detail info if it is needed).
> So post if you have something to say about the matter. Thanx
>
> tomas r
>
> btw: some mvn output is attached:
> http://www.nabble.com/file/629/error.log error.log
>
--
View this message in context: http://www.nabble.com/weird-surefire-test-failure-while-all-tests-succeed-tf2116002s177.html#a9436237
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: weird surefire test failure while all tests succeed
Posted by Nick Veys <ps...@gmail.com>.
There should be log files in target/surefire-reports, if they're not
empty there should be something of value in there.
On 8/16/06, tomiq <to...@gmail.com> wrote:
>
> Hi everyone there is some weird surefire test issue running on my computer.
> The problem is that I have 5 nonFailing(!) TestCase tests. When I run mvn
> test on the project surefire first runs the tests with no failure (Tests
> run: 95, Failures: 0, Errors: 0, Skipped: 0) then writes "There are test
> failures." so the build fails too (even if -fn or -fae are enabled - I need
> the project's maven package).
> I encounred CHECKSUM FAILED warning while downloading some maven plugins
> from repository :
> org/apache/maven/surefire/surefire-providers/2.0/surefire-providers-2.0.pom,
> but it happens on every mirror I tried. I also tried to redownload the whole
> repository - nothing works.
> I'm using maven2.0.4 on sunJava1.5_06 on winXPsp2 (and I can provide detail
> info if it is needed).
> So post if you have something to say about the matter. Thanx
>
> tomas r
>
> btw: some mvn output is attached:
> http://www.nabble.com/user-files/332/error.log error.log
> --
> View this message in context: http://www.nabble.com/weird-surefire-test-failure-while-all-tests-succeed-tf2116002.html#a5834527
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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