-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat: parametrize_wrapper #331
base: main
Are you sure you want to change the base?
Conversation
Let's add test cases for |
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, please also update our user guide with some examples!
b827e86
to
baf9e4b
Compare
baf9e4b
to
2fe15cb
Compare
@idf_parametrize('env_marker', [ | ||
('generic'), | ||
('sdcard', 'usb_device'), | ||
'sdcard', | ||
'sdcard, generic' | ||
], indirect=True) | ||
@idf_parametrize('target', [ | ||
'esp32' | ||
]) |
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.
let's try support real markers. like
@idf_parametrize('env_marker', [ | |
('generic'), | |
('sdcard', 'usb_device'), | |
'sdcard', | |
'sdcard, generic' | |
], indirect=True) | |
@idf_parametrize('target', [ | |
'esp32' | |
]) | |
@idf_parametrize('env_marker', [ | |
(pytest.mark.skip), | |
(pytest.mark.foo, pytest.mark.bar), | |
], indirect=True) | |
@idf_parametrize('target', [ | |
'esp32' | |
]) |
not sure if it's feasible.
Description
Add idf_parametrize decorator to simplify pytest parametrization by handling target expansion and runner marks via string representation.
Related
Testing
Checklist
Before submitting a Pull Request, please ensure the following: