maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gopal Patwa <gopalpa...@gmail.com>
Subject Surefire Error: all test passes but still build failed for test failure
Date Sat, 01 Mar 2008 01:27:39 GMT

The report says all the test passes but build still failed for test failures.
Does any one know what this mean?

maven 2.0.8 and TestNG 5.0.2 (jdk15_09)

Thanks
Gopal

[INFO] Surefire report directory:
C:\depo-repo\geneva\keystone\vault-inventory\application\commons\target\surefire-reports

Forking command line: C:\nospaceapps\jdk15\jre\bin\java -Xmx1024m -classpath
C:\nospaceapps\.m2\repository\org\apache\maven\surefire\surefire-booter\2.8-SNAPSHOT\surefire-booter-2.8-SNAPSHOT.jar;C:\nospaceapps\.m2\repository\org\apache\maven\surefire\surefire-api\2.8-SNAPSHOT\surefire-api-2.8-SNAPSHOT.jar;C:\nospaceapps\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;C:\nospaceapps\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;C:\nospaceapps\.m2\repos

itory\org\testng\testng\5.0.2\testng-5.0.2-jdk15.jar;C:\nospaceapps\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
org.apache.maven.surefire.booter.SurefireBooter
C:\DOCUME~1\dbeaver\LOCALS~1\Temp\surefire9580tmp
C:\DOCUME~1\dbeaver\LOCALS~1\Temp\surefire9581tmp

The system cannot find the path specified.

 

-------------------------------------------------------

 T E S T S

-------------------------------------------------------

Running com.liquid.util.file.FilenameTest

Tests run: 32, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec

Running com.liquid.util.file.filesystem.FileSystemConnectorTest

Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec

com.liquid.util.file.filesystem.FileSystemConnectorTest: failed to remove
test directory FileSystemConnectorTest-testcase-dbeaver-1204334543896-0 from
FTP Server. Please remove manually.

Running com.liquid.util.file.ftp.FtpCredentialsTest

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec

Running com.liquid.util.file.FileInformationTest

Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec

 

Results :

 

Tests run: 60, Failures: 0, Errors: 0, Skipped: 0

 

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO]
------------------------------------------------------------------------

[INFO] There are test failures.

[INFO]
------------------------------------------------------------------------

[DEBUG] Trace

org.apache.maven.BuildFailureException: There are test failures.

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:585)

        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Caused by: org.apache.maven.plugin.MojoFailureException: There are test
failures.

        at
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:428)

        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)

        ... 16 more

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 13 seconds

[INFO] Finished at: Fri Feb 29 17:22:24 PST 2008

[INFO] Final Memory: 12M/21M

[INFO]
------------------------------------------------------------------------


-- 
View this message in context: http://www.nabble.com/Surefire-Error%3A-all-test-passes-but-still-build-failed-for-test-failure-tp15769044s177p15769044.html
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


Mime
View raw message