Commit 86a3f9242084da2a0d3b375c1c81c526870dd2e3

Authored by Andrew Kane
1 parent a52c9fd5

Restore parallel tests

Showing 3 changed files with 6 additions and 1 deletions   Show diff stats
Gemfile
... ... @@ -14,3 +14,4 @@ gem "redis"
14 14 gem "connection_pool"
15 15 gem "kaminari"
16 16 gem "elasticsearch-xpack", ">= 7.8.0"
  17 +gem "parallel_tests"
... ...
Rakefile
... ... @@ -7,3 +7,7 @@ Rake::TestTask.new do |t|
7 7 t.pattern = "test/**/*_test.rb"
8 8 t.warning = false
9 9 end
  10 +
  11 +# to test in parallel, uncomment and run:
  12 +# rake parallel:test
  13 +# require "parallel_tests/tasks"
... ...
test/inheritance_test.rb
... ... @@ -13,7 +13,7 @@ class InheritanceTest < Minitest::Test
13 13 end
14 14  
15 15 def test_child_index_name
16   - assert_equal "animals-#{Date.today.year}", Dog.searchkick_index.name
  16 + assert_equal "animals-#{Date.today.year}#{ENV["TEST_ENV_NUMBER"]}", Dog.searchkick_index.name
17 17 end
18 18  
19 19 def test_child_search
... ...