Tests with failing setup fixture should get the "Error" status
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- testing-qa
Research direction
Reproduce the pytest-bdd example using features/test.feature and the stated pytest and pytest-bdd versions. Trace how a failing setup fixture is classified, then add a regression test for this case; done means the affected test receives the Error status instead of Failed.
Written by the indexing model from the issue text.
Description
Describe the bug
If a setup fixture fails, the test gets the Failed status.
It should get the Error status
To Reproduce
import pytest
from pytest_bdd import scenarios, given, when, then, parsers
scenarios('features/test.feature')
@pytest.fixture(scope="module")
def setup():
assert False
yield
@given('I want a test with setup fixture')
def step_impl(setup):
pass
Actual behavior
The test gets the Failed status
Expected behavior
The test gets the Error status
Version
- pytest version: 8.4.1
- pytest-bdd version: 8.1.0
- OS: Ubuntu
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 252
- Avg merge
- 2h 8m
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pytest-dev/pytest-bdd
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pytest-dev/pytest-bdd#838 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
pytest-dev/pytest-bdd#805 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
pytest-dev/pytest-bdd#785 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
pytest-dev/pytest-bdd#784 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
pytest-dev/pytest-bdd#780 · 5 reactions ·
All issues in pytest-dev/pytest-bdd
Similar issues
-
area:space-accuracy good first issue track:data
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Sara-Managed-Projects/space-radar#904 ·
Maintainers usually reply within 1 day