Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2969

Unit test for TesseractOCRParserTest.java has confusing behavior when Tesseract not on path

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.22
    • Fix Version/s: 1.23
    • Component/s: ocr
    • Labels:
      None

      Description

      Tesseract isn't installed on my path by default, I have to set the tesseractPath and tessdataPath properties. In trying to sort things out I ran the TesseractOCRParserTest and was shocked that it worked.. It wasn't till i dug in more that I realized that the unit tests check with the canRun() method, and then either don't run, but with no feedback to the user, or there is the assumeTrue() assert, which just stops the unit tests.

      This issue is to make this test communicate better for the next person!

        Attachments

          Activity

            People

            • Assignee:
              tallison Tim Allison
              Reporter:
              epugh David Eric Pugh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: