lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] Updated: (SOLR-3) create test harness and port TestApp to junit
Date Sun, 09 Apr 2006 06:47:30 GMT
     [ ]

Hoss Man updated SOLR-3:


zip file contains a bunch of code and a patch file that modifies the build.xml and

the new code consists of:
  * the TestHarness from before (with a few additions) which should be usefull for interacting
with a SolrCore independent of any specific testing framework
   * a new AbstractSolrTestCase that is designed to make it easy to write JUnit tests in particular.
   * a Sample test, and a short test of the basic Solr functions that demonstrate "best practices"
of the AbstractSolrTestCase
   * a ConvertedLegacyTest which is a progromatic translation of src/apps/SolrTest/newtest.txt
(the converstion perl script is included in the zip for refrence, but i wasn't planning on
commiting it.)

this represents 95% of what i think we need as far as a good testing framework moving forward:
the last 5% being modifications to SolrConfig so that individual tests can use different solrconfig.xml
files. Even without that, this code can be commited as is -- tests will just have to share
a solrconfig.xml for the time being, but they can use unique schema files.

The only hitch with all of this, is that i seem to have a filehandle leak somewhere.  Or at
least i think i do ... running "ant legacyTest" works fine with an openfiles limit of 1024,
but "ant junit" runs out of filehandles using the same limit (at 2048 the test runs fine).
 The index itself only contains about 100 files when this happens so i'm not sure what's going

If anyone can help me spot the problem, i'd appreciate it.

I'm going to take a look at it with some fresh eyes (and lsof) in the morning.

> create test harness and port TestApp to junit
> ---------------------------------------------
>          Key: SOLR-3
>          URL:
>      Project: Solr
>         Type: Task

>     Reporter: Hoss Man
>     Priority: Minor
>  Attachments:,,
> To both encourage good internal development, and to make it easy for plugin developers
to write unit tests of their own code I think we need a harness that makes it easy to unit
test updates and queries against Solr (without needing a servlet container)
> Once we have this, i think we can/should also retire "TestApp" in favor of some JUnit
tests (which would probably make more sense for other developers)
> Iv'e already started on this, i thought i'd have something to commit tonight, but i got
distracted ... filing this bug as a tracker for now.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message