One of the plugs I have written is an RGB LED to indicate different phases and statusses with. The problem I'm running into is that the test result is only available after the test.execute as far as I can see.
This means I don't have my plugs available to set the LED to red. I'm now abusing teardown to read the test record outcome to:
- Set the LED
- Wait for my DUT to detach to start the next cycle
Is there a better wat to achieve this? I've looked into output callbacks but I couldn't find if it's possible to pass plugs to the callbacks.
Some pointers would be appreciated!
One of the plugs I have written is an RGB LED to indicate different phases and statusses with. The problem I'm running into is that the test result is only available after the
test.executeas far as I can see.This means I don't have my plugs available to set the LED to red. I'm now abusing
teardownto read the test record outcome to:Is there a better wat to achieve this? I've looked into output callbacks but I couldn't find if it's possible to pass plugs to the callbacks.
Some pointers would be appreciated!