[ 
https://issues.apache.org/jira/browse/NUTCH-2503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16336441#comment-16336441
 ] 

ASF GitHub Bot commented on NUTCH-2503:
---------------------------------------

lewismc closed pull request #281: NUTCH-2503: Add option to run tests for a 
single plugin
URL: https://github.com/apache/nutch/pull/281
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/build.xml b/build.xml
index 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 
+    <javac
      encoding="${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.xml
index 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.                              -->
   <!-- ====================================================== -->


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Add option to run tests for a single plugin
> -------------------------------------------
>
>                 Key: NUTCH-2503
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2503
>             Project: Nutch
>          Issue Type: Improvement
>            Reporter: Moreno Feltscher
>            Assignee: Moreno Feltscher
>            Priority: Major
>             Fix For: 1.15
>
>
> Sometimes it makes sense to just run tests for a single plugin instead of 
> building all plugins and running all tests at once.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to