-
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: create dut-factory method (RDT-587) #240
Conversation
Hi @hfudev, this is a very initial draft commit for the implementation of the Fabrica class. I have a few questions. I have only created the base Dut class for now, but I don't think it's enough for the users. Should we implement other Duts in the same manner? (for example, IdfDut, SerialDut, etc.) It is possible, but it might result in a lot of duplicated code. |
As I see this task, I will split it into the following tasks:
|
It still seems rough, but it's starting to work. @hfudev, what do you think about doing it this way? Also, I commented on some issues here. |
00507eb
to
71bdc44
Compare
@hfudev, Hello, I have cleaned the history and it seems like the test was passed. |
# test_foo.py
from pytest_embedded.dut_factory import DutFactory
def test_foo():
dut = DutFactory.create(app_path='components/console/test_apps/console', target='esp32c6')
dut.run_all_single_board_cases() unfortunately it's not working with error message
Seems like the and the for example idf_qemu_dut = DutFactory.create(app_path='foo', target='esp32', embedded_services='qemu,idf')
idf_esp32_dut = DutFactory.create(app_path='foo', target='esp32', embedded_services='esp,idf') Besides, could you also add the |
b1223d6
to
91063d4
Compare
@hfudev This commit contains the following changes:
Do you have any other testcase I can try to implement? Further steps:
|
daf3d45
to
c2d13ef
Compare
100f052
to
becb5df
Compare
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.
The code changes LGTM. Left some comments.
Besides of the "reverse dependency" issue, another question is that now we have to touch two places when we're introducing a new param right?
for example, if we support --esptool-version
for `EspSerial, how many files shall we touch? (we won't support that, just an example) could you help document it somewhere in the comments as well?
Hello, let's take
|
21090bd
to
fdba35e
Compare
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.
@horw Thanks for this great PR. Only some minor comments regarding to the code conventions. Let's merge it today!
8401b19
to
e8f5c95
Compare
closes Make Create
Dut
Instance Easier (RDT-554) #231