I like doing Test Driven Development, but I dont know how to do that with Panda3D. There’s only so much you can test by writing tests for the functions. You pretty quickly get to things you want to test in game. I’d like to find a way to do that with automated tests.
Simple stuff like ‘if x is pressed, the player should move forward’ and ‘object A should collide with B’ and ‘object A should not collide with C’. But also more complicated stuff for the high level tests.
But I cant seem to get Python’s unittest and Panda3D to cooperate.
I have a few ideas for workarounds, but I might be making things way more complicated than they need to be, so I figured I ask first if anyone has any experience with this.