# 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
            """
    Scenario: Test subfolder scenario
        Given I have a bar

    Scenario: Test failing subfolder scenario
        Given I have a failing bar

    Scenario: Test already bound scenario
        Given I have a bar

    Scenario: Test scenario
        Given I have a bar
    """
        ),
        "utf-8",
        ensure=True,
    )
    testdir.makepyfile(
        """
        import pytest
        from pytest_bdd import scenarios, scenario

        @scenario('features/subfolder/test.feature', 'Test already bound scenario')
        def test_already_bound():
            pass

        scenarios('features')
    """
    )
    result = testdir.runpytest_subprocess("-v", "-s", *pytest_params)

# 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_scenarios.py
import textwrap
from tests.utils import assert_outcomes

            """
    Scenario: Test subfolder scenario
        Given I have a bar

    Scenario: Test failing subfolder scenario
        Given I have a failing bar

    Scenario: Test already bound scenario
        Given I have a bar

    Scenario: Test scenario
        Given I have a bar
    """
        ),
        "utf-8",
        ensure=True,
    )
    testdir.makepyfile(
        """
        import pytest
        from pytest_bdd import scenarios, scenario

        @scenario('features/subfolder/test.feature', 'Test already bound scenario')
        def test_already_bound():
            pass

        scenarios('features')
    """
    )
    result = testdir.runpytest_subprocess("-v", "-s", *pytest_params)

    assert_outcomes(result, passed=4, failed=1)