====== Testing MTASC using UnitTests ====== I added some unittests to the archive of the hacked mtasc to verify the correctness of the produced code of both mtasc and hacked mtasc. Currently there are only a few testcases regarding booleans. If you want to have other testcases added, use the existing TestCases as template and insert your own code. If you send the code over to me, i'll happily integrate it. Having a big testharness will help a lot in further development of mtasc and thus yourself. Any comments, ideas, extensions are welcome. Cheers, [[Ralf Bokelberg|Ralf]]. ===== Usage ===== - Download and install asunit from [[http://asunit.org]] - Checkout the unittests from the [[http://svn1.cvsdude.com/osflash/mtaschacks/bokel/MTASC_ASUnitTests/|subversion repository]]. - Create a new project in eclipse and copy the contents of MTASC_ASUnitTests into the project's folder - Tweak build.xml to reflect your paths - Run the test target using [[Ant]] - Now a small window should open, showing the asUnit UI. If not, correct the path either in the build.xml or in the Main.as. If you are using the original mtasc to compile, you have to update the path in Main.as. If you are using the hacked mtasc, you have to update the path in build.xml