You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Cybernd <cy...@cybernd.at> on 2006/05/23 15:12:23 UTC
Surefire Stacktrace
Hi,
Is it possible to see the whole stacktrace?
Whenever a test fails, surefire prints only irrelevant information to
stdout.
Example:
org.apache.maven.BuildFailureException: There are test failures.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
...
Caused by: org.apache.maven.plugin.MojoFailureException: There are test
failures.
at
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:403)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 16 more
Im interested into the last 16 lines. I really hope that they will show me
the true assertion message ;o) But how to tell maven to display the
information?
thx,
Bernhard
--
View this message in context: http://www.nabble.com/Surefire+Stacktrace-t1668865.html#a4522736
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: RE : Surefire Stacktrace
Posted by Cybernd <cy...@cybernd.at>.
One of the major problems of all maven related products is the documentation.
Maybe maven is brilliant. But who cares when its just some kind of black
box.
Many developers avoid maven because of the worse documentation. Maybe its
intuitive for maven-developes but its not really intuitive vor developers
using maven ;o)
btw. thx for using nabble. Its really better then flooding mailboxes.
mfg
Bernhard
--
View this message in context: http://www.nabble.com/Surefire+Stacktrace-t1668865.html#a4537092
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: RE : Surefire Stacktrace
Posted by Wim Deblauwe <wi...@gmail.com>.
This can be found in the Surefire documentation (
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html)
however, it is quite buried deep in the site: You need to click "Project
Reports" > "Plugin documentation" > "surefire:test". It would be better to
have a direct link from the overview page. This question has been asked
twice in the last couple of days. That should always be a trigger to improve
the documentation.
regards,
Wim
2006/5/23, Cybernd <cy...@cybernd.at>:
>
>
> thx :o)
> --
> View this message in context:
> http://www.nabble.com/Surefire+Stacktrace-t1668865.html#a4523315
> 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: RE : Surefire Stacktrace
Posted by Cybernd <cy...@cybernd.at>.
thx :o)
--
View this message in context: http://www.nabble.com/Surefire+Stacktrace-t1668865.html#a4523315
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: RE : Surefire Stacktrace
Posted by ertnutler <jm...@hotmail.com>.
that should be trimStackTrace
--
View this message in context: http://www.nabble.com/Surefire-Stacktrace-t1668865.html#a4764172
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: RE : Surefire Stacktrace
Posted by ertnutler <jm...@hotmail.com>.
-Dsurefire.useFile=false doesn't do anything to show the actual stacktrace.
all this does is push the same output to the console. the way to solve this
is to pass -DstimTrackTrace=false.
--
View this message in context: http://www.nabble.com/Surefire-Stacktrace-t1668865.html#a4764167
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 : Surefire Stacktrace
Posted by Olivier Lamy <ol...@accor.com>.
Try with -Dsurefire.useFile=false.
--
Olivier
-----Message d'origine-----
De : Cybernd [mailto:cybernd@cybernd.at]
Envoyé : mardi 23 mai 2006 15:12
À : users@maven.apache.org
Objet : Surefire Stacktrace
Hi,
Is it possible to see the whole stacktrace?
Whenever a test fails, surefire prints only irrelevant information to
stdout.
Example:
org.apache.maven.BuildFailureException: There are test failures.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:555)
...
Caused by: org.apache.maven.plugin.MojoFailureException: There are test
failures.
at
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.j
ava:403)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)
... 16 more
Im interested into the last 16 lines. I really hope that they will show
me the true assertion message ;o) But how to tell maven to display the
information?
thx,
Bernhard
--
View this message in context:
http://www.nabble.com/Surefire+Stacktrace-t1668865.html#a4522736
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
This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
--------------------------------------------------------------------------------------------------------------
Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
-------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org