OpenAdapt
OpenAdapt copied to clipboard
Add recording smoke test
Feature request
We would like to add an automated test that:
- calls
openadapt.record
- waits for the
recording.started
signal to be emitted (fails after e.g. 30s if no such signal is emitted) - stops the recording by emitting the stop sequence on the keyboard (re-use
openadapt.playback
) - asserts something about the state of the database (e.g. that the recording has been created) and filesystem (the video and performance plots have been created)
Motivation
Avoid regressions like in:
- https://github.com/OpenAdaptAI/OpenAdapt/pull/774
- https://github.com/OpenAdaptAI/OpenAdapt/pull/784