Sha256: 4a3174b23167932e08db012761d3b67a4d16b54739d4d6fb1cc8da82319e6b79

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 KB

Contents

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

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

  Scenario: A passing test suite
    Given a file in suite "testinfra" named "test_base" with:
    """
    import testinfra
    import pytest
    def test_id(Command):
        cmd = Command("id")
        assert cmd.rc == 0
    """
    When I run `busser test testinfra`
    And the exit status should be 0

  Scenario: A failing test suite
    Given a file in suite "testinfra" named "test_base" with:
    """
    import testinfra
    import pytest
    def test_id(Command):
        cmd = Command("id 68F0700A-AA34-4963-80F7-1D5E9F7B978E")
        assert cmd.rc == 0
    """
    When I run `busser test bash`
    And the exit status should not be 0

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
busser-testinfra-0.0.5 features/test_command.feature
busser-testinfra-0.0.4 features/test_command.feature
busser-testinfra-0.0.3 features/test_command.feature
busser-testinfra-0.0.2 features/test_command.feature
busser-testinfra-0.0.1 features/test_command.feature
busser-testinfra-0.0.1.dev features/test_command.feature