lucene-dev mailing list archives

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


Uwe Schindler commented on LUCENE-2609:

My problem with the large JAR file is: as its build on "ant package" its shipped with final
binary ZIP and this one is huge already!

I (and lots of others) prefer to ship a small jar file to the user, that helps developing
Lucene-based test cases, e.g to check TokenStreams (thats my main issue). BaseTokenSteamTestCase
should be really available to everyone as a public and supported JAR file. This was my personal
idea behind that one.

I propose to do it in a different way:

Let's split up test source and build files into two folders: src/test-base and src/test, compiled
to build/test-base and build/test and can separately zipped.
Both of them are compiled separately so self-contained. The test simply import both target
lib folders and all should work. The test-base build foder is the only one jared as class
files and mabe also get javadocs. The original tests are not part of this.

This would help both developers and users:
- new developers have a set of javadoced base classes againt those they need to write their
- users can reuse our cool checker/assert/... classes to check their own developments by simply
adding a jar file (please, withot sources, we also dont package sources into lucene-core.jar).


> Generate jar containing test classes.
> -------------------------------------
>                 Key: LUCENE-2609
>                 URL:
>             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:
For additional commands, e-mail:

View raw message