pytest-dev / pytest-dev/pytest-bdd

JSON Report not generating if first step is not implemented

Open
#721 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
1.5k
Forks
251
Avg merge
43m
Merged PRs (30d)
2

Description

I’ve been trying to figure out why the report JSON doesn’t generate if the first step of a scenario is not implemented. The issue doesn’t happen when any other step is not implemented but the first one and it generates a report if the second step or so on is not implemented. The error is correct for the step definition not being implemented. I tried tracing the error to see when the report is being generated and intercepting it in the call phase of testing but to no luck. I also tried utilizing the step error and before step hook but that didn’t help out. Any information on how I can approach?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with a scenario whose first step is undefined, then compare it with a scenario where a later step is undefined. Trace the JSON report generation and the handling of the step-definition error through the test call phase and hooks. Done means the first unimplemented step produces the same JSON report behavior as later unimplemented steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.