Sha256: 2abe5732840868a4ac26e17b1145a38b4657cbd989deafb0f30ad6d031a55d14

Contents?: true

Size: 492 Bytes

Versions: 9

Compression:

Stored size: 492 Bytes

Contents

#
# Helper that tries to find out what test suite is running (for SimpleCov.command_name)
#
module SimpleCov::CommandGuesser
  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
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
simplecov-0.4.2 lib/simplecov/command_guesser.rb
simplecov-0.4.1 lib/simplecov/command_guesser.rb
simplecov-0.4.0 lib/simplecov/command_guesser.rb
simplecov-0.3.9 lib/simplecov/command_guesser.rb
simplecov-0.3.7 lib/simplecov/command_guesser.rb
simplecov-0.3.6 lib/simplecov/command_guesser.rb
simplecov-0.3.5 lib/simplecov/command_guesser.rb
simplecov-0.3.3 lib/simplecov/command_guesser.rb
simplecov-0.3.2 lib/simplecov/command_guesser.rb