lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2609) Generate jar containing test classes.
Date Thu, 27 Jan 2011 12:15:50 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987520#action_12987520
] 

Uwe Schindler commented on LUCENE-2609:
---------------------------------------

bq. But is anyone concerned about the file size of the tests jar? It just goes into someone's
test mechanism, I think if its 7MB this is no problem.

My problem is that you cannot run the tests from this jar file, as lots of tests need the
files in classpath, but as real files. We may work around that, but all tests that call new
File(Class.getResource().toURI()) will of course fail (and there are lots of them).

So I prefer a small JAR file without crap that can also be shipped in the binary zip and helps
the user. The large one *confuses totally*. If you want to use the whole test build incl all
files, you can simply run "ant compile-tests" and point your IDE to build/classes/test. I
think we want more a subset of "usefull" classes for external developers to test their own
implementations like TokenStreams, Similarities, CustomScoreQueries,....

> Generate jar containing test classes.
> -------------------------------------
>
>                 Key: LUCENE-2609
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2609
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Build
>    Affects Versions: 3.0.2
>            Reporter: Drew Farris
>            Assignee: Shai Erera
>            Priority: Minor
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2609.patch, LUCENE-2609.patch, LUCENE-2609.patch
>
>
> The test classes are useful for writing unit tests for code external to the Lucene project.
It would be helpful to build a jar of these classes and publish them as a maven dependency.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message