Classic Docs
Docs Navigation

Testing Ruby/Rails applications that use Solr

To run tests which depend on Solr, we recommend using Sunspot::Solr that bundles Solr distribution for use with Sunsport.

Before running tests, Solr needs to be manually started with the build command:

RAILS_ENV=test bundle exec rake sunspot:solr:start

The command should execute after database is created, but before any test runs.

Semaphore Docs are open source — Edit on GitHub


Occasional lightweight product and blog updates. Unsubscribe at any time.

2009-2020 © Rendered Text. All rights reserved. Terms of Service, Privacy policy, Security.