Test cases for "src/aura_engine/core"
[EPIC] Basic test suite for Engine (#125 - closed)
Parent:Implement test cases with good code coverage.
Ideally a mocked Unix socket implements simulated Liquidsoap responses.
- deriving all available commands from an enum (config-like)
Nice to have, if not too much effort:
- Simulating the unix socket: Probably a "real" socket running on another py thread. While this is much more work to implement, a shared and open socket for all test cases would test the need that the socket needs to stay open between commands. This was previously an issue when communicating wit Liquidsoap, that sometimes the socket got closed after a certain delay (config option). At the same time a real, shared socket can introduce new issue with race conditions when using it shared with various tests.
- Listing all commands by executing the Liquidsoap
help
command. But not sure if the effort stands for the benefit, as this does not cover all possible commands and may change with Liquidsoap versions.
Definition of done
@chrizz and me agreed, that we want to reach a test coverage >= 80%.
Edited by David Trattnig