Apache Nutch is an extensible and scalable web crawler
NUTCH-2503: Add option to run tests for a single plugin
Moreno Feltscherea6a5f071baa
diff --git a/build.xml b/build.xmlindex 85bb923de..db163c620 100644--- a/build.xml+++ b/build.xml@@ -411,7 +411,7 @@<!-- Compile test code --><!-- ================================================================== --><target name="compile-core-test" depends="init, resolve-test, compile-core" description="--> compile test code">- <javac+ <javacencoding="${build.encoding}"srcdir="${test.src.dir}"includes="org/apache/nutch/**/*.java"@@ -511,6 +511,10 @@<ant dir="src/plugin" target="test" inheritAll="false"/></target>+ <target name="test-plugin" depends="resolve-test, compile" description="--> run a single plugin's JUnit tests">+ <ant dir="src/plugin" target="test-single" inheritAll="false"/>+ </target>+<target name="nightly" depends="test, tar-src, zip-src" description="--> run the nightly target build"></target>diff --git a/src/plugin/build.xml b/src/plugin/build.xmlindex d035d54b9..3f579e841 100755--- a/src/plugin/build.xml+++ b/src/plugin/build.xml@@ -152,6 +152,13 @@</parallel></target>+ <!-- ====================================================== -->+ <!-- Test a single plugin. -->+ <!-- ====================================================== -->+ <target name="test-single">+ <ant dir="${plugin}" target="test"/>+ </target>+<!-- ====================================================== --><!-- Clean all of the plugins. --><!-- ====================================================== -->