Sha256: 49bc8daad8db44aed3a4e13f1952bace426cdced299568be4d27dc36e6694977

Contents?: true

Size: 1.41 KB

Versions: 82

Compression:

Stored size: 1.41 KB

Contents

@test_unit @config
Feature:

  Exit code should be non-zero if the overall coverage is below the
  minimum_coverage threshold.

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

    When I run `bundle exec rake test`
    Then the exit status should not be 0
    And the output should contain "Coverage (88.10%) is below the expected minimum coverage (90.00%)."

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

    When I run `bundle exec rake test`
    Then the exit status should not be 0
    And the output should contain "Coverage (88.10%) is below the expected minimum coverage (88.11%)."

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

    When I run `bundle exec rake test`
    Then the exit status should be 0

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

    When I run `bundle exec rake test`
    Then the exit status should be 0

Version data entries

82 entries across 79 versions & 19 rubygems

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