[
https://issues.apache.org/jira/browse/SOLR-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Muir updated SOLR-2061:
------------------------------
Attachment: SOLR-2061.patch
attached is a patch that makes a test-framework like lucene's.
The solr contribs now only depend on this, not all the concrete tests.
This makes it easy for someone developing a plugin to put schema.xml/etc in
their test classpath, extend SolrTestCaseJ4, etc.
Before applying the patch, please do this:
{noformat}
svn mkdir solr/src/test-framework
svn mv --parents
solr/src/test/org/apache/solr/BaseDistributedSearchTestCase.java
solr/src/test-framework/org/apache/solr/BaseDistributedSearchTestCase.java
svn mv --parents solr/src/test/org/apache/solr/JSONTestUtil.java
solr/src/test-framework/org/apache/solr/JSONTestUtil.java
svn mv --parents solr/src/test/org/apache/solr/SolrTestCaseJ4.java
solr/src/test-framework/org/apache/solr/SolrTestCaseJ4.java
svn mv --parents solr/src/test/org/apache/solr/analysis/BaseTokenTestCase.java
solr/src/test-framework/org/apache/solr/analysis/BaseTokenTestCase.java
svn mv --parents solr/src/test/org/apache/solr/util/AbstractSolrTestCase.java
solr/src/test-framework/org/apache/solr/util/AbstractSolrTestCase.java
svn mv --parents solr/src/java/org/apache/solr/util/TestHarness.java
solr/src/test-framework/org/apache/solr/util/TestHarness.java
{noformat}
> Generate jar containing test classes.
> -------------------------------------
>
> Key: SOLR-2061
> URL: https://issues.apache.org/jira/browse/SOLR-2061
> Project: Solr
> Issue Type: Improvement
> Components: Build
> Affects Versions: 3.1
> Reporter: Drew Farris
> Assignee: Robert Muir
> Priority: Minor
> Fix For: 3.2, 4.0
>
> Attachments: SOLR-2061.patch, SOLR-2061.patch, SOLR-2061.patch
>
>
> Follow-on to LUCENE-2609 for the solr build -- it would be useful to generate
> and deploy a jar contaiing the test classes so other projects could write
> unit tests using the framework in Solr.
> This may take care of SOLR-717 as well.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]