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

Fix 4 skipped tests in TestGenerator

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Closed
    • Priority: Critical
    • Resolution: Auto Closed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.5
    • Component/s: generator, test
    • Labels:
      None
    • Flags:
      Important

      Description

      Right now we @Ignore 4 tests within TestGenerator, with the following annotations

       @Ignore("GORA-240 Tests for MemStore")
      

      If I remove these annotations and run the tests I get the following

      Testcase: testGenerateDomainLimit took 3.724 sec
      	FAILED
      expected:<1> but was:<0>
      junit.framework.AssertionFailedError: expected:<1> but was:<0>
      	at org.apache.nutch.crawl.TestGenerator.testGenerateDomainLimit(TestGenerator.java:217)
      
      Testcase: testGenerateOnlySitemap took 4.275 sec
      Testcase: testGenerateHostLimit took 1.929 sec
      	FAILED
      expected:<1> but was:<0>
      junit.framework.AssertionFailedError: expected:<1> but was:<0>
      	at org.apache.nutch.crawl.TestGenerator.testGenerateHostLimit(TestGenerator.java:160)
      
      Testcase: testGenerateNoneSitemap took 11.104 sec
      Testcase: testFilter took 4.206 sec
      	FAILED
      expected:<3> but was:<0>
      junit.framework.AssertionFailedError: expected:<3> but was:<0>
      	at org.apache.nutch.crawl.TestGenerator.testFilter(TestGenerator.java:278)
      
      Testcase: testGenerateHighest took 1.922 sec
      	FAILED
      expected:<2> but was:<0>
      junit.framework.AssertionFailedError: expected:<2> but was:<0>
      	at org.apache.nutch.crawl.TestGenerator.testGenerateHighest(TestGenerator.java:96)
      

      We need to investigate and address if this is truly related to GORA-240 or not!

        Attachments

        1. TEST-org.apache.nutch.crawl.TestGenerator.txt
          147 kB
          Lewis John McGibbney

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lewismc Lewis John McGibbney
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: