Great video! I do have one question though... generally speaking, should you write unit tests for every function of a class in a project?
@dvsdev Жыл бұрын
No. If a system is depended on by many other things, then it is more important to test. But in games, many things are really difficult to validate with automation. Physics, Audio, FX, Random, UI, textures, 3D model placement, these are all really difficult to write meaningful test cases for, and they are also much easier to validate by humans. But how the classes communicate, validating the details of the save file, making sure the logic states change at the appropriate times, these are easy to validate in Unit tests and difficult for humans. There is a clear cut off of what works well to automate or not. Anything I classify as Architecture or System will typically have 100% code coverage. But the closer it is to a component of a playable game object, the less likely I am to write tests. These change much more often too, so your test cases invalidate themselves very quickly.
@sadbuttrue6668 ай бұрын
Hey, thank you so much for your video(s). You cover things I need to know and get the information to the point without making hour long videos. However, I also have to say that I find the AI generated images completely distracting. A simple screen capture while typing and explaining would be perfectly adequate and more appealing to me. Thank you and have a nice day :)
@dvsdev5 ай бұрын
That is a good point. I will keep that in mind. Its also good to get these comments on this one. I'm looking back at this one and finding it useful. It was a different style of editing and takes more effort to prepare. But, it worked out much better in the end as well.