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 Method Summary collapse
Class Method Details
.guess(command) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# 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 |