Sha256: be4e2dd82c7a70724fc70d747ab54b1653d0267043b09733901dd2340c4f8eaf

Contents?: true

Size: 1.36 KB

Versions: 45

Compression:

Stored size: 1.36 KB

Contents

@test_unit @rspec @merging
Feature:

  Test suites like RSpec and Test/Unit should be merged automatically
  when both have been run recently. The coverage report will feature
  the joined results of all test suites that are using SimpleCov.

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

    When I open the coverage report generated with `bundle exec rake test`
    Then the report should be based upon:
      | Unit Tests |

    When 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

45 entries across 34 versions & 3 rubygems

Version Path
challah-rolls-0.2.0 vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-0.8.3 vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-0.8.1 vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-rolls-0.1.0 vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-0.8.0.pre vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-0.7.1 vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-0.7.0 vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-0.7.0.pre2 vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-0.7.0.pre vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-0.6.2 vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-0.6.2 vendor/bundle/gems/simplecov-0.6.1/features/merging_test_unit_and_rspec.feature
challah-0.6.1 vendor/bundle/gems/simplecov-0.5.4/features/merging_test_unit_and_rspec.feature
challah-0.6.1 vendor/bundle/gems/simplecov-0.6.1/features/merging_test_unit_and_rspec.feature
challah-0.6.1 vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-0.6.0 vendor/bundle/gems/simplecov-0.6.1/features/merging_test_unit_and_rspec.feature
challah-0.6.0 vendor/bundle/gems/simplecov-0.6.4/features/merging_test_unit_and_rspec.feature
challah-0.6.0 vendor/bundle/gems/simplecov-0.5.4/features/merging_test_unit_and_rspec.feature