Sha256: 5bf43774412af2ec4daedc7cd20f244f612ec0d1ff3ea0f82a99098085a7c19f

Contents?: true

Size: 1.42 KB

Versions: 65

Compression:

Stored size: 1.42 KB

Contents

@test_unit @rspec @merging @config
Feature: Custom names for individual test suites

  Each test suite needs a name it can be identified by. SimpleCov tries
  best to detect Rails' Unit, Functional, Integration tests as well as regular
  Test/Unit, RSpec and Cucumber, but if that is insufficient, each test suite
  config can be given a custom command name using SimpleCov.command_name.

  Scenario:
    Given SimpleCov for Test/Unit is configured with:
      """
      require 'simplecov'
      SimpleCov.start do
        command_name "I'm in UR Unitz"
      end
      """
    Given SimpleCov for RSpec is configured with:
      """
      require 'simplecov'
      SimpleCov.start do
        command_name "Dreck macht Speck"
      end
      """

    When I open the coverage report generated with `bundle exec rake test`
    Then the report should be based upon:
      | I'm in UR Unitz |

    When I open the coverage report generated with `bundle exec rspec spec`
    Then the report should be based upon:
      | Dreck macht Speck |
      | I'm in UR Unitz   |

  Scenario: RSpec auto detection with spec/features
    Given SimpleCov for RSpec is configured with:
      """
      require 'simplecov'
      SimpleCov.start
      """
    And a file named "spec/features/foobar_spec.rb" with:
      """
      """
    When I open the coverage report generated with `bundle exec rspec spec`
    Then the report should be based upon:
      | RSpec |

Version data entries

65 entries across 64 versions & 14 rubygems

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_command_name.feature
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_command_name.feature
tdiary-5.0.9 vendor/bundle/gems/simplecov-0.14.1/features/config_command_name.feature
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/simplecov-0.9.2/features/config_command_name.feature
tdiary-5.0.7 vendor/bundle/gems/simplecov-0.9.2/features/config_command_name.feature
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/config_command_name.feature
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/config_command_name.feature
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/config_command_name.feature
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/config_command_name.feature
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/config_command_name.feature
tdiary-5.0.6 vendor/bundle/gems/simplecov-0.9.2/features/config_command_name.feature
simplecov-0.15.1 features/config_command_name.feature
simplecov-0.15.0 features/config_command_name.feature
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/features/config_command_name.feature
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/features/config_command_name.feature
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/features/config_command_name.feature
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/features/config_command_name.feature
tdiary-5.0.5 vendor/bundle/gems/simplecov-0.9.2/features/config_command_name.feature
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/simplecov-0.9.2/features/config_command_name.feature
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/simplecov-0.14.1/features/config_command_name.feature