tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Jira)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-2969) Unit test for TesseractOCRParserTest.java has confusing behavior when Tesseract not on path
Date Mon, 21 Oct 2019 16:21:00 GMT

    [ https://issues.apache.org/jira/browse/TIKA-2969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16956231#comment-16956231
] 

Hudson commented on TIKA-2969:
------------------------------

SUCCESS: Integrated in Jenkins build Tika-trunk #1716 (See [https://builds.apache.org/job/Tika-trunk/1716/])
TIKA-2969 -- use assumeTrue more often in tests to let users know when (tallison: [https://github.com/apache/tika/commit/95cf1a364de643828334935e9552dd6c6f84c416])
* (edit) tika-parsers/src/test/java/org/apache/tika/parser/pdf/PDFParserTest.java
* (edit) tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java
* (edit) tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java
* (edit) tika-parsers/src/test/java/org/apache/tika/parser/ocr/TesseractOCRParserTest.java


> 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
>            Assignee: Tim Allison
>            Priority: Minor
>             Fix For: 1.23
>
>
> 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