You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Sebastian Nagel (JIRA)" <ji...@apache.org> on 2013/09/01 23:06:51 UTC

[jira] [Resolved] (NUTCH-1610) Can't run individual unit tests for plugins in nutch 2.x

     [ https://issues.apache.org/jira/browse/NUTCH-1610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebastian Nagel resolved NUTCH-1610.
------------------------------------

    Resolution: Not A Problem

Problem is documented in Wiki, see [PluginGotchas|http://wiki.apache.org/nutch/PluginGotchas].
                
> Can't run individual unit tests for plugins in nutch 2.x
> --------------------------------------------------------
>
>                 Key: NUTCH-1610
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1610
>             Project: Nutch
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.2.1
>            Reporter: Brian
>            Priority: Minor
>             Fix For: 2.3
>
>
> I can run "ant test" in the apache-nutch-2.2.1 directory but it runs all unit tests, and I just want to test a single plugin.
> Previous ways posted online for running a single unit test don't work including:
> 1) "ant test" in the plugin directory
> I get:
> "BUILD FAILED ... Problem: failed to create task or type antlib:org.apache.ivy.ant:settings"
> 2) using bin/nutch with the junit argument, e.g.:
> bin/nutch junit org.apache.nutch.indexer.basic.TestBasicIndexingFilter
> In runtime/local it says:
> Class not found "org.apache.nutch.indexer.basic.TestBasicIndexingFilter"
> In src it says:
> Error: Could not find or load main class junit.textui.TestRunner

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira