News for hackers. Stuff that matters.
Re:Unit Testing is Overrated (2020) by guzik on Thursday April 07, 2022 @06:33AM (#30942773)
Once I wrote my third game in Unity, with unit tests coverage of about 80%. It was least buggy game in my entire career. It was also the hardest time as I had to start thinking more about creating testable components rather than messy spaghetti code I used to write before.
Re:Unit Testing is Overrated (2020) by jeddy3 on Thursday April 07, 2022 @06:44AM (#30942841)
This is one of the best "side-effects" of testing, with the reasoning is that testable code is good code (as in modular, cohesive, etc...)
Re:Unit Testing is Overrated (2020) by HelloNurse on Thursday April 07, 2022 @08:19AM (#30943472)
Games are likely to benefit significantly from unit tests: architecture is complex and likely to be improved by adding clean boundaries and layers for the sake of testability; supporting automation is likely to enable useful features (e.g. deterministic simulations); tests are likely to be meaningful and important.
Re:Unit Testing is Overrated (2020) by HWR_14 on Thursday April 07, 2022 @10:47AM (#30945101)
Have you developed games at all, or are you just speaking from an armchair?
Re:Unit Testing is Overrated (2020) by kelseyfrog on Thursday April 07, 2022 @11:39AM (#30945950)
As a gamedev who writes unit tests, I agree with GP. Games benefit from unit tests. That, however, doesn't change the systemic incentives that prevent tests from being written. The ways that gamedev is budgeted/funded is a more important factor than more tests = a more stable/less buggy game.
Re:Unit Testing is Overrated (2020) by HWR_14 on Thursday April 07, 2022 @01:08PM (#30947366)
What engine do you use that supports a unit test framework?
Re:Unit Testing is Overrated (2020) by eXpl0it3r on Thursday April 07, 2022 @07:21AM (#30943060)
Since testing in game development is very much underrated, it would be interesting to hear more about this. Was this just as a hobby or is the game available somewhere? And have you ever done a demo/talk about how you've approached unit testing with Unity?
Re:Unit Testing is Overrated (2020) by gfxgirl on Thursday April 07, 2022 @10:34AM (#30944928)
not unit testing but a good talk on one team's testing

https://m.youtube.com/watch?v=m5zrfTFKf_E

Re:Unit Testing is Overrated (2020) by bobertlo on Thursday April 07, 2022 @02:44PM (#30948696)
I’ve found that while I did spend a lot of time at first figuring out how to write testable code, I now am so much better at writing in this way that I am much more productive since everything has great test coverage. Saves me going back to modules I wrote 2 years ago to add features.