QUOTE (tschumann @ Jun 29 2012, 12:31 AM)

Unit testing is automated testing of the code to make sure that it does what it should. It's basically code that checks the code is correct.
there are some tools to do this in videogames, it is usually done to do stress testing, for example leaving the game running all night playing against itself to check stability and memory management issues, it can also be done to test performance, like programming an AI to wander through the maps logging when the FPS goes under certain values... that kind of things
We have used this kind of code from time to time, when trying to find some specific, hard to find, bugs or memory issues, but some developers use it intensively to test their games
I hope this answered your question