Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enable simultaneous test runs by interpolating TEST_ENV_NUMBER into s…

…implecov's dir name

Otherwise, the test runners overwrite each other's coverage data, producing false negatives.

TEST_ENV_NUMBER is the variable used in parallel_tests for database names, etc.
  • Loading branch information...
commit 8b82dedb4cb78604ab5ba7b5e72be5ecfb95c58f 1 parent 99cc048
@chrisk authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  test/helpers/start_simplecov.rb
View
1  test/helpers/start_simplecov.rb
@@ -13,6 +13,7 @@ def start_simplecov
minimum_coverage 100 if this_process_responsible_for_coverage_reporting?
command_name SIMPLECOV_COMMAND_NAME if child_test_process?
formatter simplecov_formatter_class
+ coverage_dir "coverage/#{ENV['TEST_ENV_NUMBER']}" if !ENV['TEST_ENV_NUMBER'].nil?
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.