|
|
|
|
|
by hartror
5534 days ago
|
|
You aren't testing the engine. You are testing that the unit, in your example the class Foo, responds correctly to the state and inputs you provide it. Decoupling those responses from other units such as the graphics subsystem gives you the assurance that under the tested conditions the unit works as intended. What you are talking about is a regression or functional test. Same genus different species, still very useful but not the same tool. Edit: Going to bed, if someone would like to explain by morning why this needed to be down voted so brutally I would be much obliged! |
|
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!