Is your feature request related to a problem? Please describe.
At the moment only offline testing is possible with standard assert statements that unittest provides.
Describe the solution you'd like
It would be useful to introduce some nice API for async online testing where a condition is awaited until it's met (or it times out). I would expose some contextmanager with Condition being awaited.
Describe alternatives you've considered
This would be currently possible if you're familiar with Python's threading library. I believe though that the API for Quality Engineers could be made much better.
Additional context
A requirement for device testing - not all tests can be performed retroactively by analyzing traces.
Is your feature request related to a problem? Please describe. At the moment only offline testing is possible with standard
assert
statements thatunittest
provides.Describe the solution you'd like It would be useful to introduce some nice API for async online testing where a condition is awaited until it's met (or it times out). I would expose some contextmanager with
Condition
being awaited.Describe alternatives you've considered This would be currently possible if you're familiar with Python's
threading
library. I believe though that the API for Quality Engineers could be made much better.Additional context A requirement for device testing - not all tests can be performed retroactively by analyzing traces.