Sha256: d839d894c904ddad70baaf713617da9c704fa6d1718f9c20f5392701f5a1d0f9

Contents?: true

Size: 1.27 KB

Versions: 63

Compression:

Stored size: 1.27 KB

Contents

@test_unit @config @adapters
Feature:

  In order to re-use SimpleCov settings across projects,
  adapters 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 adapter
    Given a file named ".simplecov" with:
      """
      SimpleCov.adapters.define 'custom_command' do
        command_name "Adapter Command"
      end

      SimpleCov.start do
        load_adapter 'test_frameworks'
        load_adapter '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 Adapter Command" within "#footer"

  Scenario: Using existing adapter in custom adapter and supplying adapter to start command
    Given a file named ".simplecov" with:
      """
      SimpleCov.adapters.define 'my_adapter' do
        load_adapter 'test_frameworks'
        command_name "My Adapter"
      end

      SimpleCov.start 'my_adapter'
      """

    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 Adapter" within "#footer"

Version data entries

63 entries across 48 versions & 6 rubygems

Version Path
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/simplecov-0.7.1/features/config_adapters.feature
candlepin-api-0.4.0 bundle/ruby/gems/simplecov-0.7.1/features/config_adapters.feature
challah-1.0.0 vendor/bundle/gems/simplecov-0.7.1/features/config_adapters.feature
challah-1.0.0.beta3 vendor/bundle/gems/simplecov-0.7.1/features/config_adapters.feature
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/config_adapters.feature
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/config_adapters.feature
challah-1.0.0.beta2 vendor/bundle/gems/simplecov-0.7.1/features/config_adapters.feature
challah-1.0.0.beta vendor/bundle/gems/simplecov-0.7.1/features/config_adapters.feature
challah-0.9.1.beta.3 vendor/bundle/gems/simplecov-0.7.1/features/config_adapters.feature
devise_sociable-0.1.0 vendor/bundle/gems/simplecov-0.7.1/features/config_adapters.feature
challah-0.9.1.beta vendor/bundle/gems/simplecov-0.7.1/features/config_adapters.feature
challah-0.9.0 vendor/bundle/gems/simplecov-0.7.1/features/config_adapters.feature
challah-rolls-0.2.0 vendor/bundle/gems/simplecov-0.6.4/features/config_adapters.feature
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/simplecov-0.6.4/features/config_adapters.feature
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/simplecov-0.6.4/features/config_adapters.feature
challah-rolls-0.2.0 vendor/bundle/gems/simplecov-0.7.1/features/config_adapters.feature
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/simplecov-0.7.1/features/config_adapters.feature
challah-0.8.3 vendor/bundle/gems/simplecov-0.6.4/features/config_adapters.feature
challah-0.8.3 vendor/bundle/gems/simplecov-0.7.1/features/config_adapters.feature
simplecov-0.7.1 features/config_adapters.feature