Sha256: 682e3648fb84a3cbfceaed2452dc4f2b2751833d8fb0452f5929ec5889e127b6

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
busser-mamba-0.1.0 features/test_command.feature