Sha256: fcf07bc7fed1c3a6715d9279cab91c61a4a1892bf994778916c91bed9f7a9ebc

Contents?: true

Size: 1009 Bytes

Versions: 11

Compression:

Stored size: 1009 Bytes

Contents

@stdin
Feature: Reek reads from $stdin when no files are given
  In order to use reek with pipelines
  As a developer
  I want to pipe source code on stdin

  Scenario: return zero status with no smells
    When I pass "def simple() @fred = 3 end" to reek
    Then it succeeds
    And it reports:
      """
      $stdin -- 0 warnings

      """

  Scenario: outputs header only on empty stdin
    When I pass "" to reek
    Then it succeeds
    And it reports:
      """
      $stdin -- 0 warnings

      """

  Scenario: outputs nothing on empty stdin in quiet mode
    When I pass "" to reek --quiet
    Then it succeeds
    And it reports:
      """


      """

  Scenario: return non-zero status when there are smells
    When I pass "class Turn; def y() @x = 3; end end" to reek
    Then it fails with exit status 2
    And it reports:
      """
      $stdin -- 2 warnings:
        Turn has the variable name '@x' (Uncommunicative Name)
        Turn#y has the name 'y' (Uncommunicative Name)

      """

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
kevinrutherford-reek-1.1.3.10 features/stdin.feature
kevinrutherford-reek-1.1.3.11 features/stdin.feature
kevinrutherford-reek-1.1.3.12 features/stdin.feature
kevinrutherford-reek-1.1.3.13 features/stdin.feature
kevinrutherford-reek-1.1.3.14 features/stdin.feature
kevinrutherford-reek-1.1.3.15 features/stdin.feature
kevinrutherford-reek-1.1.3.16 features/stdin.feature
kevinrutherford-reek-1.2.0 features/stdin.feature
reek-1.2.2 features/stdin.feature
reek-1.2.1 features/stdin.feature
reek-1.2.0 features/stdin.feature