-
Notifications
You must be signed in to change notification settings - Fork 221
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
fix: default value not covered by parameters passed through feature file #737
base: master
Are you sure you want to change the base?
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! |
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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #737 +/- ##
==========================================
- Coverage 95.95% 95.76% -0.19%
==========================================
Files 55 55
Lines 2199 2220 +21
Branches 242 247 +5
==========================================
+ Hits 2110 2126 +16
- Misses 54 56 +2
- Partials 35 38 +3 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
@youtux are you happy with the codecov? If so, can we merge? |
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
#512