essence-of-live-coding icon indicating copy to clipboard operation
essence-of-live-coding copied to clipboard

Integration tests for backends

Open turion opened this issue 3 years ago • 0 comments

It would be nice to have integration tests that:

  1. Launch a simple example program using one backend
  2. Use an external tool to create a stimulus
  3. Observe & react
  4. Use an external tool to observe the reaction

For example when https://github.com/turion/essence-of-live-coding/pull/54 (MIDI backend) is merged, we could:

  1. Use an external tool like https://github.com/gbevin/SendMIDI to send some MIDI events
  2. Transform them in an example live program (e.g. change the pitch)
  3. Send them back
  4. Observe the response using some external tool like aseqdump

Similar tests could be done for the other tests. Some might require a certain level of virtualization (possibly QEMU), which can be achieved by reusing e.g. the nixos integration test framework.

turion avatar Apr 22 '21 16:04 turion