Sha256: df63fd4eb58bf9fff70e64bae369ad40208e5f179c170ffa972f9ca9d362efe9

Contents?: true

Size: 1.45 KB

Versions: 127

Compression:

Stored size: 1.45 KB

Contents

@test_unit @rspec @config
Feature:

  If you have multiple test suites, it can be a bit cumbersome
  to keep the configuration across them in sync. SimpleCov
  is able to find a config file called '.simplecov' that resides
  in your project's root and will automatically use it when
  loaded.

  This gives you the ability to configure SimpleCov just once
  and then use the same configuration on all test suites simply
  by doing a 'require "simplecov"'

  Scenario:
    Given a file named ".simplecov" with:
      """
      SimpleCov.start do
        add_filter 'test.rb'
        add_filter 'spec.rb'
      end
      """
    Given SimpleCov for Test/Unit is configured with:
      """
      require 'simplecov'
      """
    Given SimpleCov for RSpec is configured with:
      """
      require 'simplecov'
      """

    When I successfully run `bundle exec rake test`
    And I open the coverage report generated with `bundle exec rspec spec`
    Then the report should be based upon:
      | RSpec      |
      | Unit Tests |

    And I should see the groups:
      | name      | coverage | files |
      | All Files | 90.48%    | 4     |

    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 |  87.5 %  |
      | lib/faked_project/meta_magic.rb         | 100.0 %  |

Version data entries

127 entries across 111 versions & 19 rubygems

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