Sha256: f6af497a8f27653434a2e0e6b38f6d7d014e27674af65d12a5fe04a8545906b3

Contents?: true

Size: 1.6 KB

Versions: 10

Compression:

Stored size: 1.6 KB

Contents

Feature: Applies Post-Parsing Rules
  As a source code writer I want to be sure that
  certain post-parsing rules are applied

  Scenario: Throwing exception on big estimates
    Given I have a "Sample.java" file with content:
    """
    @todo #13:180m This puzzle has too big estimate
    """
    When I run bin/pdd with "--rule=max-estimate:90"
    Then Exit code is not zero
    Then Stdout contains "bigger than 90 minutes"

  Scenario: Throwing exception on small estimates
    Given I have a "Sample.java" file with content:
    """
    @todo #13:15min This puzzle has too small estimate
    """
    When I run bin/pdd with "--rule=min-estimate:30"
    Then Exit code is not zero
    Then Stdout contains "lower than 30 minutes"

  Scenario: Throwing exception on duplicates
    Given I have a "Sample.java" file with content:
    """
    @todo #13:15min The text
    @todo #13:15min The text
    """
    When I run bin/pdd with ""
    Then Exit code is not zero
    Then Stdout contains "there are 2 duplicate"

  Scenario: Throwing exception on duplicates
    Given I have a "Sample.java" file with content:
    """
    @todo #13/DEV:15min Some text first
    @todo #13/TEST:15min The text second
    """
    When I run bin/pdd with "--rule=available-roles:DEV,IMP"
    Then Exit code is not zero
    Then Stdout contains "defines role TEST"

  Scenario: Throwing exception on touching max-duplicates rule
    Given I have a "Sample.java" file with content:
    """
    @todo #334:15m This is the puzzle
    @todo #35:30m This is the puzzle
    """
    When I run bin/pdd with "--rule=max-duplicates:3"
    Then Exit code is not zero

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pdd-0.19.4 features/applies_rules.feature
pdd-0.19.3 features/applies_rules.feature
pdd-0.19.2 features/applies_rules.feature
pdd-0.19.1 features/applies_rules.feature
pdd-0.19 features/applies_rules.feature
pdd-0.18.3 features/applies_rules.feature
pdd-0.18.2 features/applies_rules.feature
pdd-0.18.1 features/applies_rules.feature
pdd-0.18 features/applies_rules.feature
pdd-0.17.9 features/applies_rules.feature