how to test my code?

Started by osaid, March 02, 2016, 08:46:16 PM

Previous topic - Next topic

osaid

hi...
so im using M.U.G.E.N based game as my graduation project from college , one of the requirements is to test my code (like unit testing , intergration testing... etc) any software methedology testing i can do .. i was wondering what test i can do?
my game is written in LUA
thanks

Cyanide

Don't entirely understand the question. When you are testing in mugen you simply play it and see if it works the way you expect. If not, repeat till it does. At best you have syntax highlighting and inaccurate error reporting in fighter factory. Beyond that, nothing, cos it's not a real coding language. It's just english that the game turns into effects when you get right down to it.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

vgma2

Unfortunately, Mugen does not have any kind of automated testing.  No writing test cases here.
All testing done in Mugen is manual testing.
So I don't think you can really do unit testing here, unless you count testing individual states as unit testing.  I'd imagine integration testing in Mugen would be to test if your custom system mechanics, helpers, etc. function properly with your character.
Of course, then there would be system testing to test if your computer (and other people's) can actually handle running your character.