Parametrized fixture based on configuration file #9830
Unanswered
jmlemetayer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I would like to be able to test multiple embedded boards at the same time using a configuration file.
My idea was to have at the end something like that:
To do this I have started a local plugin like this:
I did it like this because I would like to have my test to run on all boards. But I do not want to have the
device
fixture mandatory, so the tests stay quite simple.My idea was to later add some
tty_port
and evenserial
fixtures on top of that. So that a test can request a working serial link with the board just by doing:But this is not working... I have an error like this:
Clearly the
devices
list is still empty when the fixture is constructed.Is it possible to do something like that ? What will be the correct way to do it ? Parsing the yaml in the
get_devices
function is working, but I lose all thegetini
andgetoption
mechanism (not shown in the example).Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions