Skip to content

Commit bd31345

Browse files
committed
Allow parallel testing (#35030).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@20920 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 684f883 commit bd31345

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

doc/RUNNING_TESTS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Apache perl module Redmine.pm and Capybara tests, see below).
1414
You can run `ruby test/unit/issue_test.rb` for running a single test case and
1515
`ruby test/unit/issue_test.rb -n test_create` for running a single test.
1616

17+
You can run tests in parallel by setting the PARALLEL_WORKERS environment
18+
variable:
19+
`PARALLEL_WORKERS=8 rake test`
20+
1721
Before running tests, you need to configure both development
1822
and test databases.
1923

test/test_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ class ActionView::TestCase
5353
end
5454

5555
class ActiveSupport::TestCase
56+
parallelize(workers: 1)
57+
5658
include ActionDispatch::TestProcess
5759

5860
self.use_transactional_tests = true

0 commit comments

Comments
 (0)