Hello
Lately, I realize testing my game to check if everything works fine was a lot harder than testing my little school homework and that it consumes a lot of my developing time.
What I used to do in my school homework was simply to print out the information transform by my program and then check if it’s the same as the value I expected. I repeat this test in a couple of different situations and if it’s correct all the time I consider it works. If no, I try to find the bugs.
The problem is that this method don’t work very well for testing my game. One of the issue I face is that my code is in a loop and it might work for the first 2000 times but at the 2001 time it will produce an unexpected behavior. No exception, no error, it’s just that it doesn’t produce the result I expected.
To test that, I usually try to execute the code on paper, if I think it’s correct I run it and stare at the program to see if it does the right thing (which can be pretty long).
I was wondering if anyone know a better method.
