OpenAdapt icon indicating copy to clipboard operation
OpenAdapt copied to clipboard

Add recording smoke test

Open abrichr opened this issue 8 months ago • 6 comments

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

abrichr avatar Jun 18 '24 14:06 abrichr