Did you try using the MiniSolrCloudCluster helper class? On Thu, Dec 10, 2015 at 11:27 AM, Sathyakumar Seshachalam <sathyakumar_seshacha...@trimble.com> wrote: > Am giving up on this, and resorting to my own test framework using > JettySolrRunner Before a Suite runs. > > Facing quite a few hurdles - > 1. When I run tests from IDE I get, java.lang.AssertionError: fix your > classpath to have tests-framework.jar before lucene-core.jar > 2. Gradle "test" works Ok, But getSolrHome in AbstractSolrTestCase is > never called > 3. The code imposes a class hierarchy on the test classes > 4. Not enough documentation / samples etc., > > > > > On 10/12/15, 10:51 AM, "Sathyakumar Seshachalam" > <sathyakumar_seshacha...@trimble.com> wrote: > >>Hello Andrea, >> >>Thanks for the link. Am running 4.10.3. However the test-framework classes >>haven¹t changed much. I will give this a try. >> >> >>On 09/12/15, 4:11 PM, "Andrea Gazzarini" <a.gazzar...@gmail.com> wrote: >> >>>Hi Sathyakumar, >>>check this post [1] (assuming you're using Solr 5.x), maybe it can help. >>> >>>Andrea >>> >>>[1] >>>http://andreagazzarini.blogspot.it/2015/10/how-to-do-integration-tests-wi >>>t >>>h-solr.html >>> >>>2015-12-09 11:32 GMT+01:00 Sathyakumar Seshachalam < >>>sathyakumar_seshacha...@trimble.com>: >>> >>>> Are there any documentations around Solr test framework. ( >>>> http://mvnrepository.com/artifact/org.apache.solr/solr-test-framework) >>>> >>>> I am looking to do integration tests to just check if I am able to add >>>> document and search it via JUnitTests. There does seem to be a >>>> test-framework from solr, but the documentation seems to be woefully >>>> inadequate. >>>> In my case I have a conf folder that contains the schema and solrconfig >>>> (that I will actually copy to my solr home and run in production), Just >>>> with these two files in a folder, Is it possible to run an Integration >>>>Test >>>> ? >>>> >>>> Any pointers/suggestions ? I tried running test case pointing it to the >>>> parent folder but got an error >>>> >>>> java.lang.AssertionError: fix your classpath to have >>>>tests-framework.jar >>>> before lucene-core.jar >>>> >>>> And I cannot seem to fix the above either. Am using gradle and actually >>>>do >>>> have test-framework as the first dependency. >>>> >>>> >>>> >> >
-- Regards, Shalin Shekhar Mangar.