Clarification re @scenario decorator in case of failure
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- python
- Domain
- documentation
Research direction
Start with the scenario decorator documentation at the linked scenario-decorator section and verify what happens when a scenario step fails an assertion or raises a runtime error. Document the observed behavior clearly, including whether the decorated function runs, so the documentation answers the question.
Written by the indexing model from the issue text.
Description
Hey Guys,
In documentation https://pytest-bdd.readthedocs.io/en/stable/#scenario-decorator it says
Functions decorated with the scenario decorator behave like a normal test function, and they will be executed after all scenario steps.
What happens if steps fail assertion or have runtime issue?
- 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 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 3/5 1-2 days Newbie friendliness 45/100
pytest-dev/pytest-bdd#782 ·
-
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
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
python-version
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug javascript P2-medium python release:v3.1
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
adrirubio/claude-deck#546 ·
Maintainers usually reply within 1 day
-
area: desktop area: website priority: P2 type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
appandflow/stim#3411 · 1 comment ·
Maintainers usually reply within 1 day