Sha256: 21bcc3a98c3f46c0d227643b22a1a8b3d1c74104d554927f306c706c1a84e578

Contents?: true

Size: 1018 Bytes

Versions: 2

Compression:

Stored size: 1018 Bytes

Contents

Feature: Suite cleanup command
  In order to have a fresh suite directory base for each test run
  As a user of kb
  I want a command to clean any suite subdirectories

  Background:
    Given a test KB_ROOT directory named "kb-suite"

  Scenario: A nonexistent base suite path
    Given I delete the KB_ROOT directory
    When I run `kb suite cleanup`
    Then the output should contain "does not exist"
    And the exit status should be 0

  Scenario: An empty base suite path
    When I run `kb suite cleanup`
    Then the stdout should not contain anything
    And the exit status should be 0

  Scenario: A base suite path containing suite directories
    Given a suite directory named "bats"
    And a suite directory named "minitest"
    When I run `kb suite cleanup`
    Then the output should contain "bats"
    And the output should contain "minitest"
    And the suite directory named "bats" should not exist
    And the suite directory named "minitest" should not exist
    And the exit status should be 0

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kb-1.0.0.alpha.1 features/suite_cleanup_command.feature
kb-1.0.0.alpha.0 features/suite_cleanup_command.feature