I tried a combination of TestSuite
and Thread
:
gem 'test-unit' require 'test/unit' require 'test/unit/ui/console/testrunner'
This looks good, but I have not tested the tests.
The result (see below) is a bit chaotic, each thread sends its messages to the message of the other threads, but it seems to work correctly. Therefore, perhaps you should catch the output of each thread in order to get the best test logs.
Loaded suite Test 4Loaded suite Test 1Loaded suite Test 2Loaded suite Test 3 Started Started . Started . Started . . Finished in 0.328125 seconds. Finished in 0.328125 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications Finished in 0.765625 seconds. Finished in 0.546875 seconds. 100% passed 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 3.05 tests/s, 3.05 assertions/s 100% passed 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 3.05 tests/s, 3.05 assertions/s 100% passed 100% passed
source share