essence-of-live-coding
essence-of-live-coding copied to clipboard
Integration tests for backends
It would be nice to have integration tests that:
- Launch a simple example program using one backend
- Use an external tool to create a stimulus
- Observe & react
- 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:
- Use an external tool like https://github.com/gbevin/SendMIDI to send some MIDI events
- Transform them in an example live program (e.g. change the pitch)
- Send them back
- 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.