lib/simplecov/command_guesser.rb
def from_command_line_options
        case original_run_command
        when /test\/functional\//, /test\/\{.*functional.*\}\//
          "Functional Tests"
        when /test\/integration\//
          "Integration Tests"
        when /test\//
          "Unit Tests"
        when /spec/
          "RSpec"
        when /cucumber/, /features/
          "Cucumber Features"
        end
      end
# 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_command_line_options
        case original_run_command
        when /test\/functional\//, /test\/\{.*functional.*\}\//
          "Functional Tests"
        when /test\/integration\//
          "Integration Tests"
        when /test\//
          "Unit Tests"
        when /spec/
          "RSpec"
        when /cucumber/, /features/
          "Cucumber Features"
        end
      end
def from_command_line_options case original_run_command when / test \/ functional \/ / , / test \/ \{ .*functional.* \} \/ / "Functional Tests" when / test \/ integration \/ / "Integration Tests" when / test \/ / "Unit Tests" when / spec / "RSpec" when / cucumber / , / features / "Cucumber Features" end 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 .