Sha256: 25a8519e9fe7512965e2c12925b705c30f921276fb3272d90668b42aca55ba07

Contents?: true

Size: 1.14 KB

Versions: 3

Compression:

Stored size: 1.14 KB

Contents

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

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

#   Scenario: A passing test suite
    # Given a file in suite "bats" named "default.bats" with:
    # """
    # @test "runs something" {
    #   run echo "hello"
    #   [ "$status" -eq 0 ]
    #   [ "$output" == "hello" ]
    # }

    # """
    # When I run `busser test bats`
    # Then the output should contain:
    # """
    # 1..1
    # ok 1 runs something
    # """
    # And the exit status should be 0

#   Scenario: A failing test suite
#     Given a file in suite "bats" named "default.bats" with:
#     """
#     @test "fails something" {
#       run which uhoh-whatzit-called
#       [ "$status" -eq 0 ]
#     }

#     """
#     When I run `busser test bats`
#     Then the output should contain:
#     """
#     1..1
#     not ok 1 fails something
#     """
#     And the exit status should not be 0

Version data entries

3 entries across 2 versions & 1 rubygems

Version Path
busser-bats-0.5.0 config/features/test_command.feature
busser-bats-0.5.0 features/test_command.feature
busser-bats-0.4.0 config/features/test_command.feature