MiniSolrCloudCluster is intended for building unit tests for cloud commands 
within Solr itself.

What most people do to test applications based on Solr (and their Solr 
configurations) is to start solr either on their CI server or in the cloud 
(more likely the later), and then point their application at that Solr instance 
through configuration for the unit tests.   They may also have separate tests 
to test the Solr collection/core configuration itself.

You can have your CI tool (Travis/etc.) or unit test scripts start-up Solr 
locally, or in the cloud, using various tools and concoctions.   Part of the 
core of that is the solr command-line in SOLR_HOME/bin, post tool in 
SOLR_HOME/bin, and zkcli in SOLR_HOME/server/scripts/cloud-scripts.

To start Solr in the cloud, you should look towards something that exists:
        https://github.com/lucidworks/solr-scale-tk 
        https://github.com/vkhatri/chef-solrcloud

Hope this helps,

-Dan

-----Original Message-----
From: Madhire, Naveen [mailto:naveen.madh...@capitalone.com] 
Sent: Thursday, March 17, 2016 11:24 AM
To: solr-user@lucene.apache.org
Subject: FW: SolrCloud App Unit Testing


Hi,

I am writing a Solr Application, can anyone please let me know how to Unit test 
the application?

I see we have MiniSolrCloudCluster class available in Solr, but I am confused 
about how to use that for Unit testing.

How should I create a embedded server for unit testing?



Thanks,
Naveen
________________________________________________________

The information contained in this e-mail is confidential and/or proprietary to 
Capital One and/or its affiliates and may only be used solely in performance of 
work or services for Capital One. The information transmitted herewith is 
intended only for use by the individual or entity to which it is addressed. If 
the reader of this message is not the intended recipient, you are hereby 
notified that any review, retransmission, dissemination, distribution, copying 
or other use of, or taking of any action in reliance upon this information is 
strictly prohibited. If you have received this communication in error, please 
contact the sender and delete the material from your computer.

Reply via email to