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

Bob Paulin commented on TIKA-1851:
----------------------------------

I like the idea of putting the docs in each module.  I tried to do this 
initially only to find many of the tests include asserts for documents that 
have nothing to do with the parser under test.  So I feel if we go this route 
we're going to end up doing more than moving documents around but also 
refactoring a number of tests. 

Near term it might be easier to keep the docs in one place.  The unzipping is 
something that could be addressed however with some modifications to some of 
the test classes to use getResourceAsStream.  There might be some limitations 
here.  But that would remove the need to unzip.  Might be worthwhile to 
understand how much time is spent unzipping before going down this route.

> Tika 2.0 - Move test resources from core to test-resources
> ----------------------------------------------------------
>
>                 Key: TIKA-1851
>                 URL: https://issues.apache.org/jira/browse/TIKA-1851
>             Project: Tika
>          Issue Type: Sub-task
>            Reporter: Tim Allison
>            Assignee: Tim Allison
>            Priority: Trivial
>             Fix For: 2.0
>
>
> Let's try to move resources that are used for testing to the test-resources 
> module if possible: MockParser, DummyParser, TikaTest and the unit tests for 
> MockParser.  That should also allow us to drop the test-jar goal in 
> tika-core.  Anything else?
> Haven't actually tried this yet; there may be surprises.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to