Sha256: de06cf66ccb12d2b424caad7ac16217029625cfafe5bfd4d2dfc3f6e66b84e23

Contents?: true

Size: 290 Bytes

Versions: 9

Compression:

Stored size: 290 Bytes

Contents

require 'testr/config'

TestR::Config.after_fork_hooks << lambda {
  |worker_number, log_file, test_file, test_names|

  # for compatitibilty with parallel_tests gem,
  # store numbers as strings: "", "2", "3", "4"
  ENV['TEST_ENV_NUMBER'] = (worker_number + 1).to_s if worker_number > 0
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
testr-14.2.0 lib/testr/config/parallel_tests.rb
testr-14.1.3 lib/testr/config/parallel_tests.rb
testr-14.1.2 lib/testr/config/parallel_tests.rb
testr-14.1.1 lib/testr/config/parallel_tests.rb
testr-14.1.0 lib/testr/config/parallel_tests.rb
testr-14.0.3 lib/testr/config/parallel_tests.rb
testr-14.0.2 lib/testr/config/parallel_tests.rb
testr-14.0.1 lib/testr/config/parallel_tests.rb
testr-14.0.0 lib/testr/config/parallel_tests.rb