fwiw, There is TestCrossCoreJoin, I'm not sure how it's useful for you. On Fri, Dec 18, 2015 at 3:25 PM, Alessandro Benedetti <abenede...@apache.org > wrote:
> Hi Guys, > was investigating a little bit about the use of the SolrJettyTestBase as I > had to run in my integration tests a multi core Solr instance ( is then the > application than applies the proper " collection" each time it uses the > services ) > > Unfortunately the current implementation of the SolrJettyTestBase seems to > be bound to a mono core instance ( or at least, it is really hard to > understand how to use it for a multi core instance) . > > Any suggestion related this ? > I think I will move to the EmbeddedSolrServer which works in multi core > quite nicely... > > Cheers > > > > On 10 December 2015 at 07:46, Andrea Gazzarini <a.gazzar...@gmail.com> > wrote: > > > Hi Sathyakumar, > > better, as the previous example talks about RDF and some other irrelevant > > stuff in this context: this is [1] the first chapter of my book, where I > > run a sample Integration test using Solr 4.10.x, and this is [2] the > Github > > project that contains the code described in the book. > > > > HTH, > > Andrea > > > > [1] > > http://www.slideshare.net/PacktPub/apache-solr-essentials-sample-chapter > > [2] https://github.com/agazzarini/apache-solr-essentials > > > > 2015-12-10 7:06 GMT+01:00 Andrea Gazzarini <a.gazzar...@gmail.com>: > > > > > In that case is even easier, you can use the Cargo maven plugin and > > > failsafe. > > > > > > This is an example [1] but the point is: > > > > > > - configure Cargo to start a container (e.g. jetty, tomcat) with Solr > > > deployed, in the pre-integration-test phase > > > > > > - execute any *IT test case class > > > > > > - stop the container in the post-integration-phase > > > > > > Let me know if you need further help > > > > > > Best, > > > Andrea > > > > > > [1] > > > > > > https://github.com/agazzarini/SolRDF/blob/solrdf-1.0/solrdf/solrdf-integration-tests/pom.xml > > > On 10 Dec 2015 06:22, "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-wit > > >> >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. > > >> >> > > >> >> > > >> >> > > >> > > >> > > > > > > -- > -------------------------- > > Benedetti Alessandro > Visiting card : http://about.me/alessandro_benedetti > > "Tyger, tyger burning bright > In the forests of the night, > What immortal hand or eye > Could frame thy fearful symmetry?" > > William Blake - Songs of Experience -1794 England > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com> <mkhlud...@griddynamics.com>