Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Report not generating if first step is not implemented #721

Open
Suladis opened this issue Oct 15, 2024 · 4 comments
Open

JSON Report not generating if first step is not implemented #721

Suladis opened this issue Oct 15, 2024 · 4 comments
Labels

Comments

@Suladis
Copy link

Suladis commented Oct 15, 2024

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?

@jsa34
Copy link
Collaborator

jsa34 commented Oct 22, 2024

I'll take a look this week and see if I can see what's happening

@Suladis
Copy link
Author

Suladis commented Oct 25, 2024

Looking forward to it, are there any recommended workarounds that you’d recommend?

@jsa34
Copy link
Collaborator

jsa34 commented Nov 28, 2024

Apologies for the delay!

The simple workaround, I guess, is to implement the step.

I've not touched the json output before yet - what do you see when steps other than the first are not implemented? What are you expecting to see?

@jsa34 jsa34 added the awaiting response Awaiting response from the reporter label Nov 28, 2024
@Suladis
Copy link
Author

Suladis commented Dec 1, 2024

No worries at all. I appreciate you trying to help!!

That is a great workaround but I'm trying to figure out how to best figure this issue out for future scenarios.

Currently I have implemented hooks to take care of steps that are not implemented. I'm still getting familiar with hooks, but I was wondering if the first step not being implemented prevents the test from starting execution and is exiting with a code 3 in the collection phase.

I was wondering if that was the issue that resulted in a report not being made and how to best approach it...

I hope that makes some sense and thanks again!

@jsa34 jsa34 added bug and removed awaiting response Awaiting response from the reporter labels Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants