Methods

SimpleCov::CommandGuesser

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

Public Class Methods

guess(command) click to toggle source
# File lib/simplecov/command_guesser.rb, line 5
def self.guess(command)
  case command
    when /#{'test/functional/'}/
      "Functional Tests"
    when /#{'test/integration/'}/
      "Integration Tests"
    when /#{'test/'}/
      "Unit Tests"
    when /cucumber/, /features/
      "Cucumber Features"
    when /spec/
      "RSpec"
    else
      return command
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.