-Re: How to handle to run testcases in ruby code for solr
Erik Hatcher 2012-02-17, 16:02
Just FYI.... the solr-ruby (hyphen, not underscore to be precise) is "deprecated" in that the source no longer lives under Apache's svn. The gem is still out there, and it's still a useful library, but the Ruby/Solr world seems to use RSolr the most. Both have their pros/cons, but solr-ruby works just fine as you'll see. The source code for it was relocated to my personal github account for posterity: <https://github.com/erikhatcher/solr-ruby-flare>
All that being said, the solr-ruby library itself has extensive coverage with unit and functional tests. For the functional side, you can see here <https://github.com/erikhatcher/solr-ruby-flare/blob/master/solr-ruby/test/functional/server_test.rb> which ends up getting wrapped with a test Solr instance and leveraged in the :test Rake task here: <https://github.com/erikhatcher/solr-ruby-flare/blob/master/solr-ruby/Rakefile>
Hope that helps.
On Feb 17, 2012, at 07:12 , solr wrote:
> Hi all,
> Am writing rails application by using solr_ruby gem to access solr .
> Can anybody suggest how to handle testcaeses for solr code and connections
> in functionaltetsing.
> View this message in context: http://lucene.472066.n3.nabble.com/How-to-handle-to-run-testcases-in-ruby-code-for-solr-tp3753479p3753479.html
> Sent from the Solr - User mailing list archive at Nabble.com.