Sha256: 5659fe482b480f6e1b069d6bc7a94b4f0f8a4338ea8a37ddb7b874f4c47d7c0b

Contents?: true

Size: 1.59 KB

Versions: 16

Compression:

Stored size: 1.59 KB

Contents

Feature: Show progress
  In order to see the progress of the examiners
  As a developer
  I want to be able to selectively activate progress reporting

  # Note that --progress is the default on TTYs, but needs to be explicitely
  # enabled here because output in the cucumber scenarios does not go to a TTY.
  Scenario: shows progress output on mixed files by default
    Given a directory called 'mixed_files' containing some clean and smelly files
    When I run reek --progress mixed_files
    Then the exit status indicates smells
    And it reports:
      """
      Inspecting 2 file(s):
      .S

      mixed_files/dirty.rb -- 2 warnings:
        [4]:UncommunicativeMethodName: Smelly#x has the name 'x' [https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Method-Name.md]
        [5]:UncommunicativeVariableName: Smelly#x has the variable name 'y' [https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Variable-Name.md]
      2 total warnings
      """

  Scenario: --no-progress disables progress output
    Given a directory called 'mixed_files' containing some clean and smelly files
    When I run reek --no-progress mixed_files
    Then the exit status indicates smells
    And it reports:
      """
      mixed_files/dirty.rb -- 2 warnings:
        [4]:UncommunicativeMethodName: Smelly#x has the name 'x' [https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Method-Name.md]
        [5]:UncommunicativeVariableName: Smelly#x has the variable name 'y' [https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Variable-Name.md]
      2 total warnings
      """

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
reek-4.8.1 features/command_line_interface/show_progress.feature
reek-4.8.0 features/command_line_interface/show_progress.feature
reek-4.7.3 features/command_line_interface/show_progress.feature
reek-4.7.2 features/command_line_interface/show_progress.feature
reek-4.7.1 features/command_line_interface/show_progress.feature
reek-4.7.0 features/command_line_interface/show_progress.feature
reek-4.6.2 features/command_line_interface/show_progress.feature
reek-4.6.1 features/command_line_interface/show_progress.feature
reek-4.6.0 features/command_line_interface/show_progress.feature
reek-4.5.6 features/command_line_interface/show_progress.feature
reek-4.5.5 features/command_line_interface/show_progress.feature
reek-4.5.4 features/command_line_interface/show_progress.feature
reek-4.5.3 features/command_line_interface/show_progress.feature
reek-4.5.2 features/command_line_interface/show_progress.feature
reek-4.5.1 features/command_line_interface/show_progress.feature
reek-4.5.0 features/command_line_interface/show_progress.feature