Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-1610

Can't run individual unit tests for plugins in nutch 2.x

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.3
    • Component/s: test
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              brian44 Brian
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: