# Path: tests/utils.py
# def assert_outcomes(
#     result: RunResult,
#     passed: int = 0,
#     skipped: int = 0,
#     failed: int = 0,
#     errors: int = 0,
#     xpassed: int = 0,
#     xfailed: int = 0,
# ) -> None:
#     """Compatibility function for result.assert_outcomes"""
#     result.assert_outcomes(
#         errors=errors, passed=passed, skipped=skipped, failed=failed, xpassed=xpassed, xfailed=xfailed
#     )


import textwrap
from tests.utils import assert_outcomes
            Feature: Feature Two

              Background:
                Given I have A

              Scenario: Something that just needs A
                When I do something else with A
                Then something else about B

              Scenario: Something that needs B again
                Given I have B
                When I do something else with B
                Then something else about A and B
        """
        ),
    )
    testdir.makepyfile(
        textwrap.dedent(
            """\
        import pytest
        from pytest_bdd import then, scenario

        @scenario("wrong.feature", "Do something with A")
        def test_wrong():
            pass

        """
        )
    )
    result = testdir.runpytest()

# Path: tests/utils.py
# def assert_outcomes(
#     result: RunResult,
#     passed: int = 0,
#     skipped: int = 0,
#     failed: int = 0,
#     errors: int = 0,
#     xpassed: int = 0,
#     xfailed: int = 0,
# ) -> None:
#     """Compatibility function for result.assert_outcomes"""
#     result.assert_outcomes(
#         errors=errors, passed=passed, skipped=skipped, failed=failed, xpassed=xpassed, xfailed=xfailed
#     )


# Path: tests/feature/test_wrong.py
import textwrap
from tests.utils import assert_outcomes

            Feature: Feature Two

              Background:
                Given I have A

              Scenario: Something that just needs A
                When I do something else with A
                Then something else about B

              Scenario: Something that needs B again
                Given I have B
                When I do something else with B
                Then something else about A and B
        """
        ),
    )
    testdir.makepyfile(
        textwrap.dedent(
            """\
        import pytest
        from pytest_bdd import then, scenario

        @scenario("wrong.feature", "Do something with A")
        def test_wrong():
            pass

        """
        )
    )
    result = testdir.runpytest()

    assert_outcomes(result, errors=1)