Le lundi 08 janvier 2007 à 14:03 -0800, Nathan Bubna a écrit : > Ok, i got it working. But, to do so, i had to upgrade to Ant 1.7.0. > I'm not sure why it wouldn't work with Ant 1.6.2, though i tried a > variety of things. Any insight here would be appreciated...
Ah. This this exactly what I pointed out on this list while responding to Will last friday. Prior to ant 1.7.0, the ant <junit> task doesn't use the junit.jar found in the classpath at runtime. It took some time before I finally figured this out some time ago, I finally found the info in the ant changelog. So we just need to test ant version and display a message. Claude > It'd be great if this could work with earlier versions of Ant, but if > not, then we should at least document it. > > On 1/8/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: > > Testsuite: org.apache.velocity.tools.test.whitebox.GenericToolsTests > > Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec > > > > Testcase: warning took 0.01 sec > > FAILED > > No tests found in org.apache.velocity.tools.test.whitebox.GenericToolsTests > > junit.framework.AssertionFailedError: No tests found in > > org.apache.velocity.tools.test.whitebox.GenericToolsTests > > =================== > > Testsuite: org.apache.velocity.tools.test.blackbox.ViewToolsTests > > Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec > > > > Testcase: warning took 0 sec > > FAILED > > No tests found in org.apache.velocity.tools.test.blackbox.ViewToolsTests > > junit.framework.AssertionFailedError: No tests found in > > org.apache.velocity.tools.test.blackbox.ViewToolsTests > > =================== > > The showcase.log looks like normal VVS and Velocity startup chatter. > > Nothing about tests in there. > > > > Could this be something to do with the JUnit/Ant classpath stuff? > > Perhaps the wrong version of JUnit in the classpath or wrong classpath > > being used? Looking into this myself... > > > > > > On 1/8/07, Claude Brisson <[EMAIL PROTECTED]> wrote: > > > Hi Nathan. > > > > > > The exact cause should be listed (as long as any output) in the test > > > result files in build/test/rst/ > > > > > > What do they contain ? > > > > > > Claude > > > > > > Le lundi 08 janvier 2007 à 10:47 -0800, Nathan Bubna a écrit : > > > > Claude, > > > > > > > > The new test stuff looks great. I'm particularly impressed by the > > > > ability to embed jetty like that. However, i can't get the tests to > > > > run on my system, even after fixing the the toolbox path for the > > > > generic tests. Here's the output i get: > > > > > > > > test.generic: > > > > [junit] Running > > > > org.apache.velocity.tools.test.whitebox.GenericToolsTests > > > > [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec > > > > [junit] Test > > > > org.apache.velocity.tools.test.whitebox.GenericToolsTests FAILED > > > > ... > > > > start-showcase-webapp: > > > > [echo] web server launched successfully. > > > > [junit] Running > > > > org.apache.velocity.tools.test.blackbox.ViewToolsTests > > > > [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec > > > > [junit] Test org.apache.velocity.tools.test.blackbox.ViewToolsTests > > > > FAILED > > > > > > > > I've tried messing around with various properties on the Junit task, > > > > but no luck so far. Any idea what might cause this? I even tried > > > > putting Sysout calls in each of the methods in GenericToolsTest to see > > > > which one was being run, but none of them were. > > > > > > > > help! :) > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
