Hacker News new | ask | show | jobs
by seabee 5534 days ago
It's impossible to unit test a component whose criteria for 'working' is tightly coupled to dependencies out of your control (video hardware & drivers).

Thus you'll never be able to unit-test a video game completely. Or even fulfill other forms of testing with the same breadth as is possible in other software, unless you have every possible configuration to test on, or stick with consoles. Games are among the buggiest of all software, but it's not for want of trying!

1 comments

Yes, it's true that unit testing those components of a video game that abstract away the hardware underneath is hard or even practically impossible. But Foo here is not talking to hardware. It uses a model given by GrSubsys and that model can be mocked.