pytest-bdd icon indicating copy to clipboard operation
pytest-bdd copied to clipboard

BDD library for the py.test runner

Results 165 pytest-bdd issues
Sort by recently updated
recently updated
newest added
trafficstars

[pytest caplog fixture](https://docs.pytest.org/en/7.1.x/how-to/logging.html#caplog-fixture) enables the capture of logs so they can be used in assertions. It seems that py.test bdd steps are capturing out streams somehow so this information is...

- updated pydocs description for Step and Step.add_line - added `datatable` property - init'ed `datatable` property - modified `add_line` to check the line, if it starts and ends with a...

Fixtrue pytest_bdd_after_scenario(scenario: Scenario): All steps and scenarios has status failed=False, however test failed and pytest_bdd_step_error fixture worked correct ![image](https://user-images.githubusercontent.com/118245396/203028122-8ae43772-bf37-4fca-9a13-bba5507ef045.png) [gw0] [ 25%] FAILED ui_steps/test_reports_steps.py::test_deselect_facility_daily_risk_report[chromium]

Environment: platform darwin -- Python 3.9.12, pytest-7.1.2, pluggy-1.0.0 plugins: splinter-3.3.2, bdd-6.0.1, clarity-1.0.1 Steps to reproduce: 1. Create simple pytest-bdd setup with feature file and tests. 2. In feature file and...

Cucumber expressions module is a part of the Gherkin toolset. To make pytest-bdd compatible with official tools it has to support cucumber expressions https://github.com/cucumber/cucumber-expressions#readme There is the official implementation for...

feature
blocked

How do I get the data table in a step implementation? Should I use "data_table" as argument? Is it renamable? And what type for mypy?

Env: Pytest 8.2.2 Pytest-bdd 7.2.0 python 3.12.3 When I stack multiple `then` step, of which at least one has parametrization, pytest raises `fixture not found` error. But, if there is...

fixes #689 Added a test to replicate the issue. Simply used the same logic pre pytest 8.1 but ajusted the paratemers to create the FixtureDef with expected values post 8.1

Env: Pytest 8.1.1 Pytest-bdd 7.1.2 more details ``` ============================================================= test session starts ============================================================= platform linux -- Python 3.10.6, pytest-8.1.1, pluggy-1.5.0 cachedir: .pytest_cache metadata: {'Python': '3.10.6', 'Platform': 'Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35', 'Packages': {'pytest': '8.1.1',...

bug

The following test will pass in pytest=8.0.2, pytest-bdd=7.2.1, but will fail in pytest=8.1.0, pytest-bdd=7.2.1. ``` @given(parsers.parse('the value {value:d}'), target_fixture='x') def step(value): return value @when(parsers.parse('multiplied by {value:d}'), target_fixture='result') def step(x, value):...