-
Notifications
You must be signed in to change notification settings - Fork 233
fix: default value not covered by parameters passed through feature file #737
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Can we add a test for this?
yes! |
jsa34
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot see any changes? I was expecting the tests to be added
sorry I'm late. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried locally, and noticed tests fail - there seems to be issues with some step args now.
Could you address these test failures?
It appears to be when the kwarg isn't an arg of the step
|
No, on the existing tests. I will invoke a run to report the tests that fail |
|
I took a look quickly to see if I could find a way to fix this and maintain the cases I mentioned, and came up with something like: If this helps :) |
Great code! it's worked in my case. |
Add regression tested code to not break when Args not in the method signature are present
for more information, see https://pre-commit.ci
Add type hints
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #737 +/- ##
==========================================
+ Coverage 96.06% 96.07% +0.01%
==========================================
Files 55 55
Lines 2236 2244 +8
Branches 245 246 +1
==========================================
+ Hits 2148 2156 +8
Misses 53 53
Partials 35 35 ☔ View full report in Codecov by Sentry. |
|
@youtux are you happy with the codecov? |
Also, no need for this to use scenario outlines.
|
Looks good to me - thanks for revisiting it for us :) |

Describe the bug
when given multi description for step as below code
and pass parameters from feature file in Scenario Outline
Parameters username, password parameters passed through feature file cannot take effect.
The default values in def are always used。
in above case, the result is
see also:
#610 pr fix this problems
Supersedes #610
Resolves #512
Resolves #198