next up previous contents
Next: Testing Tomcat and Velocity Up: Velocity Previous: Installing Velocity

Testing Velocity

The Velocity developers use an automated test facility, and it is included in the distribution. You can use it to make sure that all is well with your build of Velocity.

To run the test suite, simply use the build target test when you build :

   ant test
If all is well, you should see output like :
   test:
   Running JUnit template tests for Velocity ...
   Adding TemplateTestCase : arithmetic
   Adding TemplateTestCase : array
   Adding TemplateTestCase : block
      .
      .
      .
   Adding TemplateTestCase : math
   Adding TemplateTestCase : range
   Adding TemplateTestCase : get
   Adding TemplateTestCase : velocimacro2
   Adding TemplateTestCase : foreach-type
   Adding ContextSafetyTestCase.
   ......................................
   Time: 2.553
   
   OK (38 tests)



Copyright © 2001, R.M. Morriën, H.P.A.M. Snoek, M.A.C. Bakker