Questions tagged [unit-testing]

A method by which individual parts of code or modules together with associated control data, usage procedures, and operating procedures, are tested to determine if they are fit for use.

A unit is the smallest testable part of a game. In procedural programming a unit could be an entire module but is more commonly an individual function or procedure. In object-oriented programming a unit is often an entire interface, such as a class, but could be an individual method.

Unit tests are commonly created by programmers during the development process.

Ideally, each test case is independent from the others: substitutes like method stubs, mock objects, fakes and test harnesses can be used to assist testing a module in isolation. Unit tests are typically written and run by software developers to ensure that code meets its design and behaves as intended.

Its implementation can vary from being very manual (pencil and paper)[citation needed] to being formalized as part of build automation.

29 questions
37
votes
7 answers

How common is automated testing in game development?

Do gamers developers use to write unit and integration tests? How common is it among puzzle developers? And among developers of MMORPGs and FPSes? (I have no background in game development neither am I cogitating about working with it - it is just a…
brandizzi
  • 473
  • 1
  • 4
  • 7