JUnit is an alias for junit.textui.TestRunner
This class takes one JUnit test class and runs it from the command line.
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