-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
29 lines (17 loc) · 753 Bytes
/
Copy pathREADME
File metadata and controls
29 lines (17 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ConcurrentUnitTest
__________________
ConcurrentUnitTest allows to run unit tests concurrently.
Ruby interpreter does not use native threads, so if the unit tests are CPU bound then
there is no need to run unit tests concurrently. If unit tests IO bound, especially
if they write/read database, running them concurrently can dramatically speed up execution.
If you use JRuby even running CPU bound tests may be beneficial, because JRuby uses
native threads, so eventually different tests may run on different cores.
Sample usage.
require 'test/unit/concurrent/concurrenttestunit'
class MyTestCase < Test::Unit::ConcurrentTestCase
def test_one
end
def test_two
end
end
Test::Unit::Concurrent::ConcurrentTestRunner.run(MyTestCase)