Writes code.
Doesn't work as intended.
Works as intended.
Tests other scenarios.
Don't work as intended.
Works as intended in scenarios.
Scenario 1 fails.
Stares at code.
Staring doesn't work as intended.

  • 1
    Write tests.
  • 3
    "staring doesn't work as intended" 😅
  • 1
    @plusgut been trying to figure out how to do this for game dev. This particular incident I'm thinking may be a good application. So you're right. Not much experience with unit testing and TDD sadly. Today isnt a bad time to improve on that.
  • 1
    Neither the fuck goes as intended
  • 1
    @jusjoin I think it's very difficult to do for game dev. The application states are far more complex than in other applications, because the player/user has a lot more freedom.

    In case you find a working approach don't forget to tell us about it. :P
  • 2
    @theCalcaholic Addendum: Unit tests for the scripts you write in unity should be easy though. My former comment mainly applies to end to end testing.

    However that makes TDD still difficult.
  • 0
    Debug vs release build? I had an issue where the code worked fine in debug but not in release. That code was using reflection to determine the calling method and the compiler optimised the release build so the calling methods didn't natch.
Add Comment