JUnit is an alias for junit.textui.TestRunner

This class takes one JUnit test class and runs it from the command line.

Usage:

bin/nutch junit <testClass> 

<testClass>: This is the test class you wish to execute e.g org.apache.nutch.crawl.TestInjector

Before the junit command can be used, it is essential to build all test classes prior to executing the ant runtime target as follows:

ant compile-core-test
ant runtime

CommandLineOptions

bin/nutch junit (last edited 2011-10-10 19:57:20 by LewisJohnMcgibbney)