Permalink
Browse files

docs, add example for running a single test against core adapters.

[ci skip]
  • Loading branch information...
1 parent fc7a849 commit ce14ebe6b4de3096e46fe0948c0fc4d4222adab2 @senny senny committed Jul 22, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 guides/source/contributing_to_ruby_on_rails.md
@@ -318,6 +318,12 @@ You can also run any single test separately:
$ ARCONN=sqlite3 ruby -Itest test/cases/associations/has_many_associations_test.rb
```
+To run a single test against all adapters, use:
+
+```bash
+$ bundle exec rake TEST=test/cases/associations/has_many_associations_test.rb
+```
+
You can invoke `test_jdbcmysql`, `test_jdbcsqlite3` or `test_jdbcpostgresql` also. See the file `activerecord/RUNNING_UNIT_TESTS.rdoc` for information on running more targeted database tests, or the file `ci/travis.rb` for the test suite run by the continuous integration server.
### Warnings

0 comments on commit ce14ebe

Please sign in to comment.