Sha256: 2017014f75a1aabf6e2f18a1f164c726408ddf62730fb0441be3052caa86b3d9

Contents?: true

Size: 985 Bytes

Versions: 127

Compression:

Stored size: 985 Bytes

Contents

@test_unit
Feature:

  Defining some groups and filters should give a corresponding
  coverage report that respects those settings after running tests

  Scenario:
    Given SimpleCov for Test/Unit is configured with:
      """
      require 'simplecov'
      SimpleCov.start do
        add_group 'Libs', 'lib/faked_project/'
        add_filter '/test/'
      end
      """

    When I open the coverage report generated with `bundle exec rake test`
    Then I should see the groups:
      | name      | coverage | files |
      | All Files | 88.1%    | 4     |
      | Libs      | 86.11%   | 3     |
      | Ungrouped | 100.0%   | 1     |

    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 %  |

Version data entries

127 entries across 111 versions & 19 rubygems

Version Path
simplecov-patched-0.14.3 features/test_unit_groups_and_filters_basic.feature
simplecov-patched-0.14.2 features/test_unit_groups_and_filters_basic.feature
tdiary-5.0.4 vendor/bundle/gems/simplecov-0.9.2/features/test_unit_groups_and_filters_basic.feature
simplecov-0.14.1 features/test_unit_groups_and_filters_basic.feature
simplecov-0.14.0 features/test_unit_groups_and_filters_basic.feature
simplecov-0.13.0 features/test_unit_groups_and_filters_basic.feature
abaci-0.3.0 vendor/bundle/gems/simplecov-0.12.0/features/test_unit_groups_and_filters_basic.feature
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/simplecov-0.12.0/features/test_unit_groups_and_filters_basic.feature
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/simplecov-0.12.0/features/test_unit_groups_and_filters_basic.feature
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/simplecov-0.12.0/features/test_unit_groups_and_filters_basic.feature
cvss-suite-1.0.8 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_groups_and_filters_basic.feature
tdiary-5.0.2 vendor/bundle/gems/simplecov-0.9.2/features/test_unit_groups_and_filters_basic.feature
simplecov-0.12.0 features/test_unit_groups_and_filters_basic.feature
tdiary-5.0.1 vendor/bundle/gems/simplecov-0.9.2/features/test_unit_groups_and_filters_basic.feature
cvss-suite-1.0.7 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_groups_and_filters_basic.feature
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/simplecov-0.11.2/features/test_unit_groups_and_filters_basic.feature
cvss-suite-1.0.6 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_groups_and_filters_basic.feature
cvss-suite-1.0.5 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_groups_and_filters_basic.feature
cvss-suite-1.0.4 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_groups_and_filters_basic.feature
cvss-suite-1.0.3 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_groups_and_filters_basic.feature