3 ms·
I think you're giving a bit too much credit to game logic codebases. They generally move at a pretty fast pace and change often(due to the iterative nature of
by vvanders 7y ago
I think you're giving a bit too much credit to game logic codebases.
They generally move at a pretty fast pace and change often(due to the iterative nature of what's "fun"). I don't think I saw a single unit test until I was well out of the game industry.
- Filligree 7y agoMy go-to exception for this has always been Factorio. They have not only unit tests, but integration tests, regression tests, fuzzers, performance regression tests, .... Their blog regularly goes into details about how it all works. It's very much worth reading.
- hhmc 7y agoSure, but you have to acknowledge that factorio is incredibly amenable to those types of tests -- in a way that most games aren't.
- Filligree 7y agoTrue, but that's not really an excuse for having none at all.
- worldsayshi 7y agoIt seems to me if the physics engine and whatnot is deterministic I don't see why it wouldn't be possible to record input sequences and keep those and their effects as regression tests.
- Fargren 7y agoThose tests can be written, but if you do it naively coverage is measurable and very small. And the physics engine is not necessarily deterministic (or if it is, you can't always control all it's parameters)
- daseiner1 7y agoSo Factorio is well-factored? Nice.
- Baeocystin 7y agoThe factoring expands to meet the needs of the ever-expanding factoring.
- vvanders 7y agoHah, that truly is the exception. It's been a few years but if I recall correctly we did have a "smoke test" running on a jenkins box under someone's desk that booted a few levels with most of the game entities(they were called danger_room_1/2/3/etc) and verified that the game didn't crash. Aside from that though there wasn't much else which lead to some spectacular build breaks. Ah the joys of "AAA" development.