tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Eric Pugh (Jira)" <j...@apache.org>
Subject [jira] [Created] (TIKA-2969) Unit test for TesseractOCRParserTest.java has confusing behavior when Tesseract not on path
Date Sun, 20 Oct 2019 13:29:00 GMT
David Eric Pugh created TIKA-2969:
-------------------------------------

             Summary: Unit test for TesseractOCRParserTest.java has confusing behavior when
Tesseract not on path
                 Key: TIKA-2969
                 URL: https://issues.apache.org/jira/browse/TIKA-2969
             Project: Tika
          Issue Type: Improvement
          Components: ocr
    Affects Versions: 1.22
            Reporter: David Eric Pugh


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!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message