Sha256: ec664d03515d53b1bfd491e1396684454d47efd41460b37e59910a61444497a8

Contents?: true

Size: 1.27 KB

Versions: 65

Compression:

Stored size: 1.27 KB

Contents

@test_unit @config @profiles
Feature:

  In order to re-use SimpleCov settings across projects,
  profiles can be defined that hold configuration settings
  that can be loaded at once.

  Background:
    Given SimpleCov for Test/Unit is configured with:
      """
      require 'simplecov'
      """

  Scenario: Defining and using a custom profile
    Given a file named ".simplecov" with:
      """
      SimpleCov.profiles.define 'custom_command' do
        command_name "Profile Command"
      end

      SimpleCov.start do
        load_profile 'test_frameworks'
        load_profile 'custom_command'
      end
      """

    When I open the coverage report generated with `bundle exec rake test`
    Then I should see "4 files in total."
    And I should see "using Profile Command" within "#footer"

  Scenario: Using existing profile in custom profile and supplying profile to start command
    Given a file named ".simplecov" with:
      """
      SimpleCov.profiles.define 'my_profile' do
        load_profile 'test_frameworks'
        command_name "My Profile"
      end

      SimpleCov.start 'my_profile'
      """

    When I open the coverage report generated with `bundle exec rake test`
    Then I should see "4 files in total."
    And I should see "using My Profile" within "#footer"

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_profiles.feature
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_profiles.feature
tdiary-5.0.9 vendor/bundle/gems/simplecov-0.14.1/features/config_profiles.feature
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/simplecov-0.9.2/features/config_profiles.feature
tdiary-5.0.7 vendor/bundle/gems/simplecov-0.9.2/features/config_profiles.feature
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/config_profiles.feature
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/config_profiles.feature
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/config_profiles.feature
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/config_profiles.feature
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/config_profiles.feature
tdiary-5.0.6 vendor/bundle/gems/simplecov-0.9.2/features/config_profiles.feature
simplecov-0.15.1 features/config_profiles.feature
simplecov-0.15.0 features/config_profiles.feature
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/features/config_profiles.feature
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/features/config_profiles.feature
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/features/config_profiles.feature
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/features/config_profiles.feature
tdiary-5.0.5 vendor/bundle/gems/simplecov-0.9.2/features/config_profiles.feature
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/simplecov-0.9.2/features/config_profiles.feature
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/simplecov-0.14.1/features/config_profiles.feature