March 28th, 2008
I always wanted to do it, now i can do it at work: Writing a ActionScript parser. If it is finished, i want to use it to format our codebase according to our code conventions. Other usages which come to my mind are optimization of imports for example. Another thing i always wanted to do is to output the code as XML. This enables everybody with some XML knowledge to do all kinds of analysis and or conversions. After three days of intense work I got most of the things working. Now the tweaking starts ...
Posted in coding, tools | 1 Comment »
March 9th, 2008
I started a new project at google code to host fit4as. You can find it here: http://code.google.com/p/fit4as/
The nice thing is, that the project page contains a wiki. Maybe i can use a wiki page as input for a fit test. This would allow users to change a test and run it. Have to test this ...
Posted in coding, testing | 2 Comments »
March 6th, 2008
I wrote a simple Ant task, which nicely formats MXML. You can download the whole source package from here: MXMLFormatterTask Drop me a line if you have any comments or enhancement requests. If you have a problem go somewhere else
Cheers
Ralf.
Posted in coding, tools | 1 Comment »
March 5th, 2008
Since the last time I posted about Fit I was able to implement most of the remaining fixtures and examples. What i left out are the things that are not possible in the FlashPlayer, like synchronously loading files in the ReferenceFixture or scanning the directory for tests.
Click here to see all the current examples.
The next steps will be to test it with some "real" applications. This will show, if it makes sense and is fun to use.
Recently I read a lot about why people don't like Fit any longer. Their conclusion is, that Fit is a communication tool mostly. Using it for automating a testsuite is too expensive in terms of maintenance. To prove that, i'll implement some examples from my consulting practice and see, what they feel like in Fit.
Cheers
Ralf.
Cheers,
Ralf.
Posted in coding, testing | 1 Comment »
March 2nd, 2008
I started to port Ward Cunningham's Test framework Fit to ActionScript 3. It has some interesting features. For example does it enable users to write their own test cases using MS Word or some other tool to create simple html pages.
At the moment i have only a small example running. It tests how ints and arithmetic operators like +, -, / and * interact. If you want to download and run it, you have to make sure, that the directory is in a local flashplayer sandbox. If you feel adventurous you should be able to edit the tables in examples/arithmetic.html and change/add rows to the tests
view arithmetic example
download arithmetic example
More to come soon (hopefully:)
Cheers
Ralf.
Posted in coding, testing | 3 Comments »