Sha256: 7e1ba37fc41ae7428c9e650a8eff78b3992424ae38ed613ba98a9447c3453a21

Contents?: true

Size: 292 Bytes

Versions: 11

Compression:

Stored size: 292 Bytes

Contents

require 'tork/config'

Tork::Config.after_fork_hooks.push lambda {
  |test_file, line_numbers, log_file, worker_number|

  # 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

11 entries across 11 versions & 1 rubygems

Version Path
tork-18.2.4 lib/tork/config/parallel_tests.rb
tork-18.2.3 lib/tork/config/parallel_tests.rb
tork-18.2.2 lib/tork/config/parallel_tests.rb
tork-18.2.1 lib/tork/config/parallel_tests.rb
tork-18.2.0 lib/tork/config/parallel_tests.rb
tork-18.1.0 lib/tork/config/parallel_tests.rb
tork-18.0.1 lib/tork/config/parallel_tests.rb
tork-18.0.0 lib/tork/config/parallel_tests.rb
tork-17.1.0 lib/tork/config/parallel_tests.rb
tork-17.0.1 lib/tork/config/parallel_tests.rb
tork-17.0.0 lib/tork/config/parallel_tests.rb