Unit test Archive

  • Backwards is Forwards, my GDC lecture

    Backwards is Forwards, my GDC lecture

    Noel Llopis and I did a lecture at the Game Developer Conference this year about test driven development. It's a process we're using at High Moon and I use at home for all my coding. Gamasutra wrote an article about it, but they're the ones throwing the conference so it's not unexpected.

    Read More

  • Unit Testing Perl

    Unit Testing Perl

    While working on a small script at work today it occurred to me that had I been writing it in C++ I would have already had quite a few tests for the logic I had written. In a fit of madness I wrote a small test function in Perl and called it from the [...]

    Read More

  • Avoiding File I/O In Unit Tests

    Avoiding File I/O In Unit Tests

    Noel's article Test-Driven Game Development mentions that unit test suites should run quickly. That usually means as little file I/O as possible. However, sometimes you're dealing with middleware or legacy code that requires deserialization to construct objects. What do you do?

    Read More