Index: src/bin/nutch
===================================================================
--- src/bin/nutch	(revision 1177245)
+++ src/bin/nutch	(working copy)
@@ -72,6 +72,7 @@
   echo "  scoreupdater      updates the crawldb with linkrank scores"
   echo "  nodedumper        dumps the web graph's node scores"
   echo "  plugin            load a plugin and run one of its classes main()"
+  echo "  junit             runs the given JUnit test"
   echo " or"
   echo "  CLASSNAME         run the class named CLASSNAME"
   echo "Most commands print help when invoked w/o parameters."
@@ -243,6 +244,9 @@
   CLASS=org.apache.nutch.scoring.webgraph.NodeDumper
 elif [ "$COMMAND" = "plugin" ] ; then
   CLASS=org.apache.nutch.plugin.PluginRepository
+elif [ "$COMMAND" = "junit" ] ; then
+  CLASSPATH=$CLASSPATH:test/classes/
+  CLASS=junit.textui.TestRunner
 else
   CLASS=$COMMAND
 fi
Index: build.xml
===================================================================
--- build.xml	(revision 1177245)
+++ build.xml	(working copy)
@@ -299,6 +299,9 @@
     <copy todir="${runtime.local}/plugins">
       <fileset dir="${build.dir}/plugins"/>
     </copy>
+    <copy todir="${runtime.local}/test">
+      <fileset dir="${build.dir}/test"/>
+    </copy>
   </target>
 
   <!-- ================================================================== -->
