Skip to content

Commit

Permalink
Updated testing howto for the new unit test suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
roidrage committed Nov 18, 2008
1 parent 7db64d8 commit 457dc55
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions TESTING_THE_PLUGIN
@@ -1,4 +1,13 @@
== How to run unit tests for this plugin:
acts_as_solr comes with a quick and fast unit test suite, and with a longer-running
functional test suite, the latter testing the actual integration with Solr.

The unit test suite is written using Shoulda, so make sure you have a recent version
installed.

Running `rake test` or just `rake` will run both test suites. Use `rake test:unit` to
just run the unit test suite.

== How to run functional tests for this plugin:
To run the acts_as_solr's plugin tests run the following steps:

- create a MySQL database called "actsassolr_test" (if you want to use MySQL)
Expand All @@ -9,7 +18,7 @@ To run the acts_as_solr's plugin tests run the following steps:

- rake solr:start RAILS_ENV=test

- rake (Accepts the following arguments: DB=sqlite|mysql and MYSQL_USER=user)
- rake test:functional (Accepts the following arguments: DB=sqlite|mysql and MYSQL_USER=user)

== Troubleshooting:
If for some reason the tests don't run and you get MySQL errors, make sure you edit the MYSQL_USER entry under
Expand Down

0 comments on commit 457dc55

Please sign in to comment.