You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by tarjei <ta...@nu.no> on 2009/04/27 12:25:40 UTC

Solr test anyone?

Hi, I'm looking for ways to test that my indexing methods work correctly 
with my Solr schema.

Therefore I'm wondering if someone has created a test setup where they 
start a Solr instance and then add some documents to the instance - as a 
Junit/testng test - preferably with a working Maven dependencies for it 
as well.

I've tried googling for this as well as setting it up myself, but I have 
never managed to get a test working like I want it to.


Kind regards,
Tarjei

Re: Solr test anyone?

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
Yes, look at AbstractSolrTestCase which is the base class of almost all Solr
tests.

http://svn.apache.org/repos/asf/lucene/solr/trunk/src/java/org/apache/solr/util/AbstractSolrTestCase.java

On Mon, Apr 27, 2009 at 6:38 PM, Eric Pugh
<ep...@opensourceconnections.com>wrote:

> Look into the test code that Solr uses, there is a lot of good stuff on how
> to do testing.
> http://svn.apache.org/repos/asf/lucene/solr/trunk/src/test/.
>
> Eric
>
>
> On Apr 27, 2009, at 6:25 AM, tarjei wrote:
>
>  Hi, I'm looking for ways to test that my indexing methods work correctly
>> with my Solr schema.
>>
>> Therefore I'm wondering if someone has created a test setup where they
>> start a Solr instance and then add some documents to the instance - as a
>> Junit/testng test - preferably with a working Maven dependencies for it as
>> well.
>>
>> I've tried googling for this as well as setting it up myself, but I have
>> never managed to get a test working like I want it to.
>>
>>
>> Kind regards,
>> Tarjei
>>
>
> -----------------------------------------------------
> Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 |
> http://www.opensourceconnections.com
> Free/Busy: http://tinyurl.com/eric-cal
>
>
>
>
>


-- 
Regards,
Shalin Shekhar Mangar.

Re: Solr test anyone?

Posted by Eric Pugh <ep...@opensourceconnections.com>.
Look into the test code that Solr uses, there is a lot of good stuff  
on how to do testing.  http://svn.apache.org/repos/asf/lucene/solr/trunk/src/test/ 
.

Eric

On Apr 27, 2009, at 6:25 AM, tarjei wrote:

> Hi, I'm looking for ways to test that my indexing methods work  
> correctly with my Solr schema.
>
> Therefore I'm wondering if someone has created a test setup where  
> they start a Solr instance and then add some documents to the  
> instance - as a Junit/testng test - preferably with a working Maven  
> dependencies for it as well.
>
> I've tried googling for this as well as setting it up myself, but I  
> have never managed to get a test working like I want it to.
>
>
> Kind regards,
> Tarjei

-----------------------------------------------------
Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com
Free/Busy: http://tinyurl.com/eric-cal