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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.2.1
    • 2.3
    • test
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: