-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add filename and line no. as context in failed test runs for feature files #7
Comments
Providing the location of the scenario within the feature file might be nice and not something we would implement within regen ledger but rather within https://github.com/regen-network/gocuke. That being said, this seems a bit redundant of
The go test file and the line on which the error was thrown
The go test that runs the scenarios in the feature file I'm going to transfer this issue to the gocuke repository, which is where it would need to be addressed. |
I feel it makes getting to the feature file under test just a bit easier but that said I can see how you can craft the search differently using the feature name. While the scenario is listed, the fact that it has underscores makes it not something you can copy and paste into a search to get to the scenario in the feature file (which has spaces and not underscores) |
It's a bit hard to retrieve the exact file and line number given the current way that gherkin is transformed into their internal pickle representation. Not impossible, but hard. What would be pretty easy is outputting literal step text as steps as executed. Would that help? |
Thanks for looking at this! Yup, I think that would satisfy the requirement of wanting some specific text to search for, that brings me directly to scenario under test when there is a failure :-) |
Summary
This issue is a proposal to add context to test failure output for feature files, i.e. filename and line no. of the failed scenario.
Problem Definition
This would improve the dev UX while debugging failed tests. Knowing the failed test you could more easily search for the file, and find the scenario you need to debug. I'm not sure if this is even possible, it is just an idea.
Proposal
Output at present:
Example Desired output:
Note the added
Location
wherex/ecocredit/core/features/msg_bridge_receive.feature:59
leads to:For Admin Use
The text was updated successfully, but these errors were encountered: