|
From: Darren C. <da...@dc...> - 2006-04-02 02:18:26
|
> I've a half-finished PHP script that makes the actionscript, runs mtasc, > runs the tests, listens on the socket, and reports the results. I might > not have that ready until next week (feel free to push me). I've put this up here: http://dcook.org/software/asunit_socket_server.zip (21K) It contains both the asunit actionscript patches, and the PHP server. It is reasonably documented: see the readme.txt, and there is also an example file. I've pasted in the motivation section from the readme file in case you're wondering "why?". The configuration is ready to go for linux using gflashplayer (i.e. Flash 6), but it should be easy to configure to work on windows and mac. Darren ------------------------------------- MOTIVATION A way to run actionscript unit tests fully automatically, using only the commandline, was required, but flash cannot write to the file system or stdin/stdout. Therefore we use the XML sockets to pass the test results out of flash to a back-end server. Another key requirement was it should work on all of linux, windows and mac. Running tests automatically allows us to release actionscript libraries with makefiles that have a "make test" option. Other possibilities include running all project unit tests in an overnight regression test run. Or forcing tests to be run on a server before allowing a source control check-in. |