diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-07-22 08:41:25 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-07-22 08:41:25 +0200 |
commit | ce14ebe6b4de3096e46fe0948c0fc4d4222adab2 (patch) | |
tree | 82d2be1dbde8c73769ea53e20103caa6ed81d8cd | |
parent | fc7a849ce5da7239894013ba2493a1523165aa52 (diff) | |
download | rails-ce14ebe6b4de3096e46fe0948c0fc4d4222adab2.tar.gz rails-ce14ebe6b4de3096e46fe0948c0fc4d4222adab2.tar.bz2 rails-ce14ebe6b4de3096e46fe0948c0fc4d4222adab2.zip |
docs, add example for running a single test against core adapters.
[ci skip]
-rw-r--r-- | guides/source/contributing_to_ruby_on_rails.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/source/contributing_to_ruby_on_rails.md b/guides/source/contributing_to_ruby_on_rails.md index a8b959c725..0b05725623 100644 --- a/guides/source/contributing_to_ruby_on_rails.md +++ b/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 |