Sha256: 176555c65bd2610cda6cc4ac8c24940b91e476b1a1476acf17d84ee131dd02aa

Contents?: true

Size: 1.81 KB

Versions: 2

Compression:

Stored size: 1.81 KB

Contents

@options
Feature: Reek can be controlled using command-line options
  In order to change reek'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 reek --no-such-option
    Then the exit status indicates an error
    And it reports the error "Error: invalid option: --no-such-option"
    And stdout equals ""

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

  Scenario: display the help information
    When I run reek --help
    Then it succeeds
    And it reports:
      """
      Usage: reek [options] [files]

      Examples:

      reek lib/*.rb
      reek -q lib
      cat my_class.rb | reek

      See http://wiki.github.com/troessner/reek for detailed help.

      Common options:
          -h, --help                       Show this message
          -v, --version                    Show version

      Configuration:
          -c, --config FILE                Read configuration options from FILE

      Report formatting:
          -o, --[no-]color                 Use colors for the output (this is the default)
          -q, --quiet                      Suppress headings for smell-free source files (this is the default)
          -V, --no-quiet, --verbose        Show headings for smell-free source files
          -n, --no-line-numbers            Suppress line numbers from the output
              --line-numbers               Show line numbers in the output (this is the default)
          -s, --single-line                Show IDE-compatible single-line-per-warning
          -S, --sort-by-issue-count        Sort by "issue-count", listing the "smelliest" files first
          -y, --yaml                       Report smells in YAML format

      """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reek-1.3.8 features/command_line_interface/options.feature
reek-1.3.7 features/command_line_interface/options.feature