Sha256: d3d571461105dd2c68a6b8df12f7a0464e2c9e23a7762afa6fec3b3c2b656cc6

Contents?: true

Size: 939 Bytes

Versions: 70

Compression:

Stored size: 939 Bytes

Contents

@test_unit @config
Feature:

  Exit code should be non-zero if the overall coverage decreases.

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

    When I run `bundle exec rake test`
    Then the exit status should be 0
    And a file named "coverage/.last_run.json" should exist

    Given a file named "lib/faked_project/missed.rb" with:
      """
      class UncoveredSourceCode
        def foo
          never_reached
        rescue => err
          but no one cares about invalid ruby here
        end
      end
      """

    When I run `bundle exec rake test`
    Then the exit status should not be 0
    And the output should contain "Coverage has dropped by 3.32% since the last time (maximum allowed: 0.00%)."
    And a file named "coverage/.last_run.json" should exist

Version data entries

70 entries across 67 versions & 16 rubygems

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/refuse_coverage_drop.feature
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/refuse_coverage_drop.feature
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/simplecov-0.9.2/features/refuse_coverage_drop.feature
tdiary-5.0.7 vendor/bundle/gems/simplecov-0.9.2/features/refuse_coverage_drop.feature
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/refuse_coverage_drop.feature
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/refuse_coverage_drop.feature
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/refuse_coverage_drop.feature
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/refuse_coverage_drop.feature
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/features/refuse_coverage_drop.feature
tdiary-5.0.6 vendor/bundle/gems/simplecov-0.9.2/features/refuse_coverage_drop.feature
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/simplecov-0.9.2/features/refuse_coverage_drop.feature
tdiary-5.0.5 vendor/bundle/gems/simplecov-0.9.2/features/refuse_coverage_drop.feature
tdiary-5.0.4 vendor/bundle/gems/simplecov-0.9.2/features/refuse_coverage_drop.feature
simplecov-0.13.0 features/refuse_coverage_drop.feature
abaci-0.3.0 vendor/bundle/gems/simplecov-0.12.0/features/refuse_coverage_drop.feature
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/simplecov-0.12.0/features/refuse_coverage_drop.feature
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/simplecov-0.12.0/features/refuse_coverage_drop.feature
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/simplecov-0.12.0/features/refuse_coverage_drop.feature
cvss-suite-1.0.8 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/refuse_coverage_drop.feature
tdiary-5.0.2 vendor/bundle/gems/simplecov-0.9.2/features/refuse_coverage_drop.feature