Sha256: 250eb52806f1ed9808fb44fd05f5b4fc2cf97314660f1cf2499a93401f87b67c

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 KB

Contents

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

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

  Scenario: A passing test suite
    Given a file in suite "mamba" named "default_spec.py" with:
    """
    with describe('default'):
        with it('succeed'):
            assert True
    """
    When I run `busser test mamba`
    Then the output should contain:
    """
    1 examples ran
    """
    And the exit status should be 0

  Scenario: A failing test suite
    Given a file in suite "mamba" named "default_spec.py" with:
    """
    with describe('default'):
        with it('fail'):
            assert False
    """
    When I run `busser test mamba`
    Then the output should contain:
    """
    1 examples failed of 1 ran
    """
    And the exit status should not be 0

  Scenario: A suite with requirements.txt file
    Given a file in suite "mamba" named "requirements.txt" with:
    """
    expects
    """
    When I run `busser test mamba`
    Then the output should contain:
    """
    expects
    """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
busser-mamba-0.2.2 features/test_command.feature
busser-mamba-0.2.1 features/test_command.feature