Project

General

Profile

« Previous | Next » 

Revision 9aadd812

Added by Daniel Lobato Garcia over 8 years ago

Fixes #10106 - Make tests run in parallel

Run rake parallel:test to run tests in several processes. The gem will
auto split the tests in as many cores as you have available.

Keep in mind running tests in parallel could highlight race conditions
we would've missed otherwise, so some tests might to be fixed to ensure
any process can pick it up and run it.

View differences:

test/functional/api/v2/users_controller_test.rb
require 'test_helper'
class Api::V2::UsersControllerTest < ActionController::TestCase
valid_attrs = { :login => "johnsmith",
:mail => 'john@example.com',
:auth_source_id => AuthSourceInternal.first.id,
:password => '123456' }
def valid_attrs
{ :login => "johnsmith", :mail => 'john@example.com',
:auth_source_id => auth_sources(:internal), :password => '123456' }
end
def setup
setup_users

Also available in: Unified diff