Feature #35030 ยป 35030.patch
doc/RUNNING_TESTS | ||
---|---|---|
14 | 14 |
You can run `ruby test/unit/issue_test.rb` for running a single test case and |
15 | 15 |
`ruby test/unit/issue_test.rb -n test_create` for running a single test. |
16 | 16 | |
17 |
You can run tests in parallel by setting the PARALLEL_WORKERS environment |
|
18 |
variable: |
|
19 |
`PARALLEL_WORKERS=8 rake test` |
|
20 | ||
17 | 21 |
Before running tests, you need to configure both development |
18 | 22 |
and test databases. |
19 | 23 |
test/test_helper.rb | ||
---|---|---|
53 | 53 |
end |
54 | 54 | |
55 | 55 |
class ActiveSupport::TestCase |
56 |
parallelize(workers: 1) |
|
57 | ||
56 | 58 |
include ActionDispatch::TestProcess |
57 | 59 | |
58 | 60 |
self.use_transactional_tests = true |