You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2006/03/13 08:39:49 UTC

[jira] Updated: (SOLR-3) create test harness and port TestApp to junit

     [ http://issues.apache.org/jira/browse/SOLR-3?page=all ]

Hoss Man updated SOLR-3:
------------------------

    Attachment: TestHarness.java
                TestBasicFunctionality.java

Here's what i've got so far, still a work in progress -- but you can see the basic idea.

I was trying to avoid putting anything junit specific in the TestHarness, but it definitely looks like having an abstract subclass of TestCase that provides some assert methods that can take in adds or requests/xpaths and validate directly would make hte tests easier to read.

Any comments would be appreacited.

> create test harness and port TestApp to junit
> ---------------------------------------------
>
>          Key: SOLR-3
>          URL: http://issues.apache.org/jira/browse/SOLR-3
>      Project: Solr
>         Type: Task
>     Reporter: Hoss Man
>     Priority: Minor
>  Attachments: TestBasicFunctionality.java, TestHarness.java
>
> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira