Sunday, May 13, 2012

Progress

This week I did a few tests that would check for bugs in my code.  These tests are required if I want my game to get published by the company. There are two types of tests. There is a quicktest and there is a randomtest. The quicktest runs the game and does every single option that is possible in the game. The randomtest runs the game a certain number (10,000) of times. It shows you how often one choice can be reached. The tests are batch files and I tested them at school.
When I ran the quicktest it said I had to check a line on one of my scenes. It said there was some dead code on that line. Dead code is a piece of code that is unable to be reached because of something. In my case, I was going to another part and then finishing it. The dead code part was that I finished the scene after exiting the scene so it would never be reached. It is kind of hard to explain but I fixed the code but it wasn't causing any major problems. I will try to get a screenshot of it later.
I ran the randomtest but when I opened the file that had the results of the test, it wouldn't show all of it. It was supposed to run 10,000 times but it was different every time. I am going to try that test later.
At school the tests were running fine on Windows XP, but when I was trying to open them at home, on Windows 7, they wouldn't open. If anyone knows how to run a batch file through cmd, please tell me.

No comments:

Post a Comment