lib/simplecov/command_guesser.rb
# Storage for the original command line call that invoked the test suite.
# This has got to be stored as early as possible because i.e. rake and test/unit 2
# have a habit of tampering with ARGV, which makes i.e. the automatic distinction
# between rails unit/functional/integration tests impossible without this cached
# item.
Storage for the original command line call that invoked the test suite.
This has got to be stored as early as possible because i.e. rake and test/unit 2
have a habit of tampering with ARGV, which makes i.e. the automatic distinction
between rails unit/functional/integration tests impossible without this cached
item.
Storage for the original command line call that invoked the test suite . This has got to be stored as early as possible because i . e . rake and test / unit 2 have a habit of tampering with ARGV which makes i . e . the automatic distinction between rails unit / functional / integration tests impossible without this cached item .
def from_env
        return unless ENV["PARALLEL_TEST_GROUPS"] && ENV["TEST_ENV_NUMBER"]
        number = ENV["TEST_ENV_NUMBER"]
        number = "1" if number.empty?
        "(#{number}/#{ENV['PARALLEL_TEST_GROUPS']})"
      end
def from_env return unless ENV [ "PARALLEL_TEST_GROUPS" ] && ENV [ "TEST_ENV_NUMBER" ] number = ENV [ "TEST_ENV_NUMBER" ] number = "1" if number . empty? "(#{number}/#{ENV['PARALLEL_TEST_GROUPS']})" end
Storage for the original command line call that invoked the test suite.
Storage for the original command line call that invoked the test suite .
# If being run from inside parallel_tests set the command name according to the process number