Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
notorios5437y@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.
-
@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 -
@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. -
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.
Writes code.
Doesn't work as intended.
Debug.
Works as intended.
Tests other scenarios.
Don't work as intended.
Debug.
Works as intended in scenarios.
Scenario 1 fails.
Stares at code.
Staring doesn't work as intended.
Fuck...
undefined