Naveen:
As a "user" of Solr, wanting to develop tests for your solr based
application you'll probably get more responses on the solr-user@lucene
list (the dev@lucene is for discussing hte development of lucene & solr
themselves)
The quick answer is that, assuming you are writting your tests in java,
you can use MiniSolrCloudCluster to spin up embeeded instances of Solr and
create/access (solrj) SolrClient objects for sending requests to the solr
cluster.
If you are attempting to write unit tests is some other (non-java)
langauge, you'll need to find some way to 'exec" the "bin/solr" command on
the command line from your test framework -- either that, or leave a solr
cluster running at all times, and configure your tests to generate
distinct collection names and create those collections against the
existing cluster.
: Date: Wed, 16 Mar 2016 20:22:26 +
: From: "Madhire, Naveen"
: Reply-To: dev@lucene.apache.org
: To: "dev@lucene.apache.org"
: Subject: 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.
:
-Hoss
http://www.lucidworks.com/
-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org