Skip to content

Commit

Permalink
Enable simultaneous test runs by interpolating TEST_ENV_NUMBER into s…
Browse files Browse the repository at this point in the history
…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
chrisk committed Nov 24, 2013
1 parent 99cc048 commit 8b82ded
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/helpers/start_simplecov.rb
Expand Up @@ -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

Expand Down

0 comments on commit 8b82ded

Please sign in to comment.