Sha256: 3820215d5c23a280e2230e12f1e197db4052e98bbde45060bfb82860ff2fa0f4

Contents?: true

Size: 971 Bytes

Versions: 2

Compression:

Stored size: 971 Bytes

Contents

Feature: Test command
  In order to run tests written with shpec
  As a user of Busser
  I want my tests to run when the shpec runner plugin is installed

  Background:
    Given a test BUSSER_ROOT directory named "busser-shpec-test"
    When I successfully run `busser plugin install busser-shpec --force-postinstall`
    Given a suite directory named "shpec"

  Scenario: A passing test suite
    Given a file in suite "shpec" named "default_shpec.sh" with:
    """
    describe "basic operations"
        it "asserts equality"
              assert equal "foo" "foo"
    end_describe

    """
    When I run `busser test shpec`
    Then the exit status should be 0

  Scenario: A failing test suite
    Given a file in suite "shpec" named "default_shpec.sh" with:
    """
    describe "basic operations"
        it "asserts greater than"
              assert gt 1 99
    end_describe

    """
    When I run `busser test shpec`
    Then the exit status should not be 0

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
busser-shpec-0.1.0 features/test_command.feature
busser-shpec-0.1.0.dev features/test_command.feature