Sha256: cc762e3a0b9d7856563f5750a5187e53c70b0e32324772036634fb0263a29c7c

Contents?: true

Size: 1.58 KB

Versions: 3

Compression:

Stored size: 1.58 KB

Contents

Feature: RubyCritic can be controlled using command-line options
  In order to change RubyCritic's default behaviour
  As a developer
  I want to supply options on the command line

  Scenario: return non-zero status on bad option
    When I run rubycritic --no-such-option
    Then the exit status indicates an error
    And it reports the error "Error: invalid option: --no-such-option"
    And there is no output on stdout

  Scenario: display the current version number
    When I run rubycritic --version
    Then it succeeds
    And it reports the current version

  Scenario: display the help information
    When I run rubycritic --help
    Then it succeeds
    And it reports:
      """
      Usage: rubycritic [options] [paths]
          -p, --path [PATH]                Set path where report will be saved (tmp/rubycritic by default)
          -f, --format [FORMAT]            Report smells in the given format:
                                             html (default)
                                             json
                                             console
          -s, --minimum-score [MIN_SCORE]  Set a minimum score
          -m, --mode-ci                    Use CI mode (faster, but only analyses last commit)
              --deduplicate-symlinks       De-duplicate symlinks based on their final target
              --suppress-ratings           Suppress letter ratings
              --no-browser                 Do not open html report with browser
          -v, --version                    Show gem's version
          -h, --help                       Show this message

      """

Version data entries

3 entries across 3 versions & 1 rubygems

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