maven-surefire-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nunez Steve <steve_nu...@yahoo.com>
Subject Debugging Hints
Date Fri, 12 Jun 2009 05:30:29 GMT
Greetings all,

Does anyone have any debugging hints for surefire? I've got a perplexing problem, not helped
by the fact that surefire doesn't appear to tell me the source of the problem.

I've got a working surefire/testng system working, and have gone to add tests for a second
class. This class is nearly identical to the first, except that it processes a different data
set. The trouble is that surefire won't even load the second set of tests. The first one still
works fine, but as soon as the second class is added, 'BUILD FAILURE', with no indication
of why. After running maven with '--debug', I still get nothing. The TestSuite.txt file is
empty, and the console output doesn't indicate what the problem might be. 

The last line of the below shell excerpt says "... 16 more"; it sure would be useful to know
how to obtain those last 16 errors. Does anyone know how?

Cheers,
    - Steve Nunez

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /Users/nunez/Illation/Development/Scratch/test-app/trunk/drools-4.0.7/target/surefire-reports
for the individual test results.
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: There are test failures.

Please refer to /Users/nunez/Illation/Development/Scratch/test-app/trunk/drools-4.0.7/target/surefire-reports
for the individual test results.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:699)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
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.

Please refer to /Users/nunez/Illation/Development/Scratch/test-app/trunk/drools-4.0.7/target/surefire-reports
for the individual test results.
at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:575)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Fri Jun 12 15:23:11 EST 2009
[INFO] Final Memory: 9M/23M
[INFO] ------------------------------------------------------------------------



      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message