Sha256: 31752c210240081ec0afbbe495e0f9e6bd898c09dade07c5871b9f9d26ade7b2

Contents?: true

Size: 1.23 KB

Versions: 66

Compression:

Stored size: 1.23 KB

Contents

@rspec
Feature:

  Simply adding the basic simplecov lines to a project should get
  the user a coverage report after running `rspec`

  Scenario:
    Given SimpleCov for RSpec is configured with:
      """
      require 'simplecov'
      SimpleCov.start
      """

    When I open the coverage report generated with `bundle exec rspec spec`
    Then I should see the groups:
      | name      | coverage | files |
      | All Files | 90.74%   | 6     |

    And I should see the source files:
      | name                                    | coverage |
      | lib/faked_project.rb                    | 100.0 %  |
      | lib/faked_project/some_class.rb         | 80.0 %  |
      | lib/faked_project/framework_specific.rb | 75.0 %   |
      | lib/faked_project/meta_magic.rb         | 100.0 %  |
      | spec/meta_magic_spec.rb                 | 100.0 %  |
      | spec/some_class_spec.rb                 | 100.0 %  |

      # Note: faked_spec.rb is not appearing here since that's the first unit test file
      # loaded by Rake, and only there test_helper is required, which then loads simplecov
      # and triggers tracking of all other loaded files! Solution for this would be to
      # configure simplecov in this first test instead of test_helper.

Version data entries

66 entries across 51 versions & 6 rubygems

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