informa
2 min read
article

Feature: 'GDC: Backwards is Forward: Making Better Games with Test-Driven Development'

In another of today's Gamasutra features from GDC, High Moon Studio developers Noel Llopis and Sean Houghton introduced a unique build method called test-driven developme...
In another of today's Gamasutra features from GDC, High Moon Studio developers Noel Llopis and Sean Houghton introduced a unique build method called test-driven development (TDD) in this intermediate level lecture at GDC 2006. In it they discuss what TDD is, how others can use it in their development cycle, and the benefits of testing often - a primary focus of the methodology. This extract explains the basis for the system: "TDD is a cyclical, three-point procedure that moves as such: write test, write code, refactor, and back to write test. Llopis and Houghton are using TDD with C++ as well as Unreal code base. TDD is simple in both concept and implementation. “It comes down to one very simple cycle. You think of a very, very small feature and ... you write a very small test for that feature. We're talking about something very small,” said Llopis. Then, the programmer tests the piece of code. If it fails, he says, “you write some code to make that test pass. So now you have some passing tests. The next step is the crucial one for TDD: you refactor things,” changing the code in whatever necessary ways without changing its functionality. The whole cycle should take less than a minute, according to Llopis, stressing the importance of quick, small improvements. Although the process could take as much as three or four minutes, “if it takes ten minutes, it's not a good sign,” according to Llopis." You can read the full Gamasutra coverage on the matter, including detailed information on this neat solution (no registration required, please feel free to link to this feature from external websites).

Latest Jobs

Disbelief

Chicago, Illinois
05.10.22
Producer

Build a Rocket Boy Games

Edinburgh, Scotland
05.12.22
Lead Animation Programmer

Windwalk Games

Austin, Texas
05.16.22
Game Designer

Sucker Punch Productions

Bellevue, Washington
05.10.22
Campaign Director
More Jobs   

CONNECT WITH US

Register for a
Subscribe to
Follow us

Game Developer Account

Game Developer Newsletter

@gamedevdotcom

Register for a

Game Developer Account

Gain full access to resources (events, white paper, webinars, reports, etc)
Single sign-on to all Informa products

Register
Subscribe to

Game Developer Newsletter

Get daily Game Developer top stories every morning straight into your inbox

Subscribe
Follow us

@gamedevdotcom

Follow us @gamedevdotcom to stay up-to-date with the latest news & insider information about events & more