Ticket #417 (new task)
Component integration testing framework
|Reported by:||Philip||Owned by:||Philip|
|Component:||UI & Simulation||Keywords:|
Maybe it would be done by loading a map, sending a pre-defined sequence of player commands, simulating a certain amount of time, and then checking that the outcome is as expected (some units are in certain areas, some are dead, etc, with enough flexibility to allow for tweaks to pathfinding algorithms and unit stats etc without breaking the test results). In case of test failures, it should be possible to watch the simulation and see where it's going wrong.
This wouldn't aim to exhaustively test every aspect of gameplay, since that would require a huge amount of work - it would just test basic functionality, and particular bugs or regressions that we don't want to miss.