mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-23 01:09:55 +00:00
Allow parallel testing (#35030).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@20920 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
684f883137
commit
bd31345c87
@ -14,6 +14,10 @@ Apache perl module Redmine.pm and Capybara tests, see below).
|
|||||||
You can run `ruby test/unit/issue_test.rb` for running a single test case and
|
You can run `ruby test/unit/issue_test.rb` for running a single test case and
|
||||||
`ruby test/unit/issue_test.rb -n test_create` for running a single test.
|
`ruby test/unit/issue_test.rb -n test_create` for running a single test.
|
||||||
|
|
||||||
|
You can run tests in parallel by setting the PARALLEL_WORKERS environment
|
||||||
|
variable:
|
||||||
|
`PARALLEL_WORKERS=8 rake test`
|
||||||
|
|
||||||
Before running tests, you need to configure both development
|
Before running tests, you need to configure both development
|
||||||
and test databases.
|
and test databases.
|
||||||
|
|
||||||
|
|||||||
@ -53,6 +53,8 @@ class ActionView::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
class ActiveSupport::TestCase
|
class ActiveSupport::TestCase
|
||||||
|
parallelize(workers: 1)
|
||||||
|
|
||||||
include ActionDispatch::TestProcess
|
include ActionDispatch::TestProcess
|
||||||
|
|
||||||
self.use_transactional_tests = true
|
self.use_transactional_tests = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user