Skip to content

Commit 2f0bd27

Browse files
authored
Merge pull request rails#46627 from alison-acuna/46606/docs_serial_tests
Docs: Adds debugger section to contributing guide
2 parents f8f2590 + 4af1ffa commit 2f0bd27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

guides/source/contributing_to_ruby_on_rails.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,10 @@ $ bundle exec rake TEST=test/cases/associations/has_many_associations_test.rb
482482

483483
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.
484484

485+
#### Using Debuggers with Test
486+
487+
To use an external debugger (pry, byebug, etc), install the debugger and use it as normal. If debugger issues occur, run tests in serial by setting `PARALLEL_WORKERS=1` or run a single test with `-n test_long_test_name `.
488+
485489
### Warnings
486490

487491
The test suite runs with warnings enabled. Ideally, Ruby on Rails should issue no warnings, but there may be a few, as well as some from third-party libraries. Please ignore (or fix!) them, if any, and submit patches that do not issue new warnings.

0 commit comments

Comments
 (0)