Re:TDD from the Factorio Team
by Danieru on Friday June 18, 2021 @07:54AM
(#27549422)
Factorio is perhaps the only game I am aware of using TDD. Lots of engine teams use extensive automated testing. Only Factorio is applying it to game logic of any major game I know.
[ Parent
| on HN ]
Re:TDD from the Factorio Team
by mywittyname on Friday June 18, 2021 @10:56AM
(#27551019)
Factorio seems especially well suited to TDD. The core gameplay loop involves automating away manual tasks. So I have to imagine that the test cases leverage blueprints a lot, i.e., create a blueprint for a feature, pipe resources into it via conveyor belt, test output rates on conveyor belts.
https://twitter.com/playartifact/status/1051964775658217473?...
Artifact did it too (which is no longer being worked on though).