Module: SimpleCov::CommandGuesser

Defined in:
lib/simplecov/command_guesser.rb

Overview

Helper that tries to find out what test suite is running (for SimpleCov.command_name)

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.original_run_commandObject

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.



11
12
13
# File 'lib/simplecov/command_guesser.rb', line 11

def original_run_command
  @original_run_command
end

Class Method Details

.guessObject



13
14
15
# File 'lib/simplecov/command_guesser.rb', line 13

def guess
  from_command_line_options || from_defined_constants
end