lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-2609) Generate jar containing test classes.
Date Wed, 02 Feb 2011 05:00:28 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shai Erera updated LUCENE-2609:
-------------------------------

    Attachment: LUCENE-2609.patch

Patch includes changes to build.xmls (ignore the other changes, they are caused by svn moves
-- I didn't touch the source files). I'd appreciate an Ant 'expert' looking at them.

Since some tests depend on other tests (e.g. through extension) and other classes that are
not under test-framework, I couldn't make a test.classpath that references test-framework
only. So I modified test.classpath to reference both classes/test and classes/test-framework.

If you want to apply the patch, make sure to run the following commands:
{noformat}
svn mkdir lucene/src/test-framework
svn mv --parents lucene/src/test/org/apache/lucene/util/_TestUtil.java lucene/src/test-framework/org/apache/lucene/util/_TestUtil.java
svn mv --parents lucene/src/test/org/apache/lucene/util/LineFileDocs.java lucene/src/test-framework/org/apache/lucene/util/LineFileDocs.java
svn mv --parents lucene/src/test/org/apache/lucene/util/LuceneJUnitDividingSelector.java lucene/src/test-framework/org/apache/lucene/util/LuceneJUnitDividingSelector.java
svn mv --parents lucene/src/test/org/apache/lucene/util/LuceneJUnitResultFormatter.java lucene/src/test-framework/org/apache/lucene/util/LuceneJUnitResultFormatter.java
svn mv --parents lucene/src/test/org/apache/lucene/util/LuceneTestCase.java lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java
svn mv --parents lucene/src/test/org/apache/lucene/search/QueryUtils.java lucene/src/test-framework/org/apache/lucene/search/QueryUtils.java
svn mv --parents lucene/src/test/org/apache/lucene/search/CheckHits.java lucene/src/test-framework/org/apache/lucene/search/CheckHits.java
svn mv --parents lucene/src/test/org/apache/lucene/analysis/BaseTokenStreamTestCase.java lucene/src/test-framework/org/apache/lucene/analysis/BaseTokenStreamTestCase.java
svn mv --parents lucene/src/test/org/apache/lucene/analysis/MockAnalyzer.java lucene/src/test-framework/org/apache/lucene/analysis/MockAnalyzer.java
svn mv --parents lucene/src/test/org/apache/lucene/index/MockIndexInput.java lucene/src/test-framework/org/apache/lucene/index/MockIndexInput.java
svn mv --parents lucene/src/test/org/apache/lucene/index/RandomIndexWriter.java lucene/src/test-framework/org/apache/lucene/index/RandomIndexWriter.java
svn mv --parents lucene/src/test/org/apache/lucene/index/DocHelper.java lucene/src/test-framework/org/apache/lucene/index/DocHelper.java
svn mv --parents lucene/src/test/org/apache/lucene/store/_TestHelper.java lucene/src/test-framework/org/apache/lucene/store/_TestHelper.java
svn mv --parents lucene/src/test/org/apache/lucene/store/MockDirectoryWrapper.java lucene/src/test-framework/org/apache/lucene/store/MockDirectoryWrapper.java
svn mv --parents lucene/src/test/org/apache/lucene/store/MockIndexInputWrapper.java lucene/src/test-framework/org/apache/lucene/store/MockIndexInputWrapper.java
svn mv --parents lucene/src/test/org/apache/lucene/store/MockIndexOutputWrapper.java lucene/src/test-framework/org/apache/lucene/store/MockIndexOutputWrapper.java
{noformat}

I did not convert Solr build yet - will do so after we review the 'lucene' patch.

Also, can someone please list the Solr test-framework classes? I will handle them as well.

> 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, 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message