Sha256: 50413078de3129757442655a2e8740796bcc3008def93b5d6c53a26b52c59a36

Contents?: true

Size: 1.53 KB

Versions: 3

Compression:

Stored size: 1.53 KB

Contents

Feature: Break if overall score is bellow minimum
  In order to break the Continuous Integration builds based on a score threshold
  RubyCritic returns the exit status according with the score

  Scenario: Status indicates a success when not using --minimum-score
    Given the smelly file 'smelly.rb' with a score of 93.75
    When I run rubycritic smelly.rb
    Then the exit status indicates a success

  Scenario: Status indicates an error when score below the minimum
    Given the smelly file 'smelly.rb' with a score of 93.75
    When I run rubycritic --minimum-score 100 smelly.rb
    Then the exit status indicates an error

  Scenario: Status indicates a success when score is above the minimum
    Given the smelly file 'smelly.rb' with a score of 93.75
    When I run rubycritic --minimum-score 93 smelly.rb
    Then the exit status indicates a success

  Scenario: Status indicates a success when score is equal the minimum
    Given the clean file 'clean.rb' with a score of 100
    When I run rubycritic --minimum-score 100 clean.rb
    Then the exit status indicates a success

  Scenario: Prints the score on output
    Given the smelly file 'smelly.rb' with a score of 93.75
    When I run rubycritic smelly.rb
    Then the output should contain:
    """
    Score: 93.75
    """

  Scenario: Prints a message informing the score is below the minimum
    Given the empty file 'empty.rb' with a score of 0
    When I run rubycritic --minimum-score 100 empty.rb
    Then the output should contain:
    """
    Score (0.0) is below the minimum 100
    """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubycritic-3.0.0 features/command_line_interface/minimum_score.feature
rubycritic-2.9.4 features/command_line_interface/minimum_score.feature
rubycritic-2.9.3 features/command_line_interface/minimum_score.feature