Justinus, set
maven.junit.usefile=false in your project.properties. This should fix it. -- dIon Gillard, Multitask Consulting Blog: http://www.freeroller.net/page/dion/Weblog Work: http://www.multitask.com.au Justinus Menzel <[EMAIL PROTECTED]> wrote on 29/01/2003 11:03:57 AM: > consider the TestCase: > import junit.framework.TestCase; > > public class ThrowErrorTest extends TestCase { > public void setUp() { > } > > public void testMe() { > // throw new IncompatibleClassChangeError(); > throw new RuntimeException("test runtime exception"); > // fail("test failed"); > } > > public static void main(String[] args) { > junit.textui.TestRunner.run(ThrowErrorTest.class); > } > } > > No matter how I let the test fail, the exception and > with it the reason for the failure is not reported > to the user. > > maven -e test > ... > [junit] Running ThrowErrorTest > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.061 sec > [junit] [ERROR] TEST ThrowErrorTest FAILED > > BUILD FAILED > There were test failures. > at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:104) > at org.apache.tools.ant.Task.perform(Task.java:319) > at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:215) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:133) > at > org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232) > at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:87) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:133) > at > org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232) > at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:87) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:133) > at > org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232) > at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:87) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:133) > at > org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232) > at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:108) > at com.werken.werkz.Goal.fire(Goal.java:632) > at com.werken.werkz.Goal.attain(Goal.java:568) > at com.werken.werkz.Goal.attainPrecursors(Goal.java:481) > at com.werken.werkz.Goal.attain(Goal.java:566) > at > org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:384) > at org.apache.maven.MavenSession.attainGoals(MavenSession.java:350) > at org.apache.maven.cli.App.doMain(App.java:523) > at org.apache.maven.cli.App.main(App.java:1079) > 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:324) > at com.werken.forehead.Forehead.run(Forehead.java:543) > at com.werken.forehead.Forehead.main(Forehead.java:573) > There were test failures. > Total time: 10 seconds > > Im using a 1.0-beta-8 > > Any idea? > > Thanks > > Justinus > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ForwardSourceID:NT000A99AE --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
