Sha256: 11b361ec9e68325b73e26b49989da88ed7dd1f0c37622fa938ae98d99b1ff098

Contents?: true

Size: 1.29 KB

Versions: 50

Compression:

Stored size: 1.29 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 | 91.8%   | 7     |

    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/forking_spec.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

50 entries across 50 versions & 14 rubygems

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/rspec_basic.feature
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/rspec_basic.feature
tdiary-5.0.9 vendor/bundle/gems/simplecov-0.14.1/features/rspec_basic.feature
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/rspec_basic.feature
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/rspec_basic.feature
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/rspec_basic.feature
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/rspec_basic.feature
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/rspec_basic.feature
simplecov-0.15.1 features/rspec_basic.feature
simplecov-0.15.0 features/rspec_basic.feature
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/features/rspec_basic.feature
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/features/rspec_basic.feature
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/features/rspec_basic.feature
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/features/rspec_basic.feature
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/simplecov-0.14.1/features/rspec_basic.feature
simplecov-patched-0.14.3 features/rspec_basic.feature
simplecov-patched-0.14.2 features/rspec_basic.feature
simplecov-0.14.1 features/rspec_basic.feature
simplecov-0.14.0 features/rspec_basic.feature
simplecov-0.13.0 features/rspec_basic.feature