Testing Testing

So back into code again at last, the distractions of the past couple of weeks are gone so time to get moving on the game again.

Given the break it is now wise to catch up all the unit tests for the engine as it lets me remember where I am and sort find any stupid bugs etc that are in the low level stuff before moving into the fun of the main game loop. The code is also reaching that tipping point that if I don’t get the tests sorted now I never will, it will be too big a mountain to climb.

I know the true TDD zealots out there will be all “No no no… Tests first then write the code that passes the test” but the reality is when you are feeling out new structure etc then tests really are just lag that makes them more hassle than they are worth. You are slower to refactor, less fluid when creating data shapes.

That said, now that I am building the tests I have already found one stupid bug in Actor.With() so the tests are already proving well worth it, as is always the case 🙂