Sha256: 83f3bea13d00f5597ebef1902ef2d0832a0bdf8f9c1b84d2cc75809b43993996

Contents?: true

Size: 1.26 KB

Versions: 21

Compression:

Stored size: 1.26 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'
        [5]:UncommunicativeVariableName: Smelly#x has the variable name 'y'
      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'
        [5]:UncommunicativeVariableName: Smelly#x has the variable name 'y'
      2 total warnings
      """

Version data entries

21 entries across 19 versions & 2 rubygems

Version Path
reek-6.0.3 features/command_line_interface/show_progress.feature
reek-6.0.2 features/command_line_interface/show_progress.feature
reek-6.0.1 features/command_line_interface/show_progress.feature
reek-6.0.0 features/command_line_interface/show_progress.feature
reek-5.6.0 features/command_line_interface/show_progress.feature
reek-5.5.0 features/command_line_interface/show_progress.feature
reek-5.4.1 features/command_line_interface/show_progress.feature
reek-5.4.0 features/command_line_interface/show_progress.feature
reek-5.3.2 features/command_line_interface/show_progress.feature
reek-5.3.1 features/command_line_interface/show_progress.feature
reek-5.3.0 features/command_line_interface/show_progress.feature
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/features/command_line_interface/show_progress.feature
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/features/command_line_interface/show_progress.feature
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/features/command_line_interface/show_progress.feature
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/features/command_line_interface/show_progress.feature
reek-5.2.0 features/command_line_interface/show_progress.feature
reek-5.1.0 features/command_line_interface/show_progress.feature
reek-5.0.2 features/command_line_interface/show_progress.feature
reek-5.0.1 features/command_line_interface/show_progress.feature
reek-5.0.0 features/command_line_interface/show_progress.feature