Flexcover Branches Out
May 10, 2008 on 4:26 am | In Flex, Travel | No CommentsJust dropping a quick note to followers of Flexcover and the ongoing AS3 code coverage adventure. It’s been a super busy time at work for me, but I’ve found enough spare cycles to put together a working branch coverage feature. It’s pretty cool: instead of toting up the number of lines that were executed (and highlighting lines that didn’t run in the source view), it counts “branches” that were executed: every conditional that affects program flow is tracked to count whether it has evaluated false or true, and how many times. In other words, if (a == 1) {…} else {…} counts as two different branches, one for the if clause and one for the else clause. Even better, if (a == 1) {…} also counts as two branches: you will be able to tell if the if clause ever got skipped because a was equal to 1. Try doing that with line coverage! [Continued…]
David Coletta at Boston Flex Users Group 5/13
May 10, 2008 on 4:11 am | In Flex, Programming | No CommentsThe informative, articulate and personable David Coletta will be speaking about Buzzword’s testing approach at the upcoming Boston Flex Users Group meeting on Tuesday, 5/13 at Adobe Newton’s offices. If you haven’t checked out David’s blog, The Joy Of Flex, well, you really should! He is a great developer and also a great speaker, and this meeting will be one worth attending for sure. You should let the users group know you’re coming by registering at http://bostonfug.eventbrite.com/, so that there will be a slice of hot pizza waiting for you.
Flexcover: A Code Coverage Tool for Flex, AIR and AS3
April 12, 2008 on 8:41 am | In Flex, Programming | 10 CommentsI am very pleased to announce the initial experimental release of Flexcover, an open-source code coverage tool suite for Flex, AIR and AS3. The project lives on Google Code at http://code.google.com/p/flexcover/.
Here’s a screenshot:

There is so much work left to do on this project, but this release is a start. Rather than wait longer and try to polish it, I felt it was best to get it out there and get some feedback coming in. We’re going to be using it immediately in-house, to be sure — it’s already delivered some valuable news for us on the coverage achieved by our unit test suites!
Finally, a Working AS3 Code Coverage Technique!
March 29, 2008 on 7:37 am | In Flex, Programming | 9 Comments[Since this was posted, an initial version of the coverage tool has been put up on Google Code which can be accessed here.]
I’ve been pining for an AS3 code coverage tool for so long, I feel sick. I hate not being able to know how much of my code is actually exercised by test cases, whether automated or manual. So I’ve been playing with an idea on how to get AS3 code coverage working for the last few days and, somewhat to my own amazement, it actually works! Thanks to Adobe’s release of the compiler as an open source distribution, I’ve been able to hack mxmlc to instrument each line of code, adding a call to a global function that logs the line number and the function name.
I invoke the modified compiler on my test program like this (note the additional library for coverage support)
mxmlc.exe -library-path+=../fcov/bin/fcov.swc -coverage src/CoverageTest.mxml
-output bin/CoverageTest.swf
This generates a special debug version of the SWF that calls a special function in the fcov.swc library. As you can imagine, this piggybacks on the same compiler feature which supports breakpoints. However, the debugger is not involved in any way; there’s no need to run it.
The crude trace log looks like this: [Continued…]
ItDepends: Code Dependency Analysis For Flex/AIR Applications
March 26, 2008 on 5:56 pm | In Flex, Programming | 8 CommentsI’m pleased to be able to release a new open source tool to the Flex development community today, that comes out our work at Allurent. The tool is called ItDepends and is located on Google Code. It analyzes the dependencies between classes in a Flex application, using a link report generated by the Flex compiler, and shows this information in an easy-to-use visual browser UI. ItDepends can show you what classes and packages take up the most room in your application and how they depend on each other. It can also show you what results you might achieve by removing classes or partitioning your code into modules, without having to redesign or recompile your application.
It’s written in Adobe AIR of course! I find AIR a nice, productive environment for creating UI-driven tools quickly and easily.
Here are some screen shots. Please see the ItDepends project wiki for more information, and please do download the app and try it out. The UI is kind of clunky, as this tool was kind of a quick hack, but it does get the job done.
Boston Flex Users’ Group ready to spread its wings
March 21, 2008 on 3:40 pm | In Flex, Programming | 1 CommentIt’s official: at long last, Boston now has its own Flex Users’ Group! The first meeting will be on Tuesday April 8 at 7pm at Adobe Systems’ office in Newton, MA. Peter Farland of the Flex development team will be our first speaker, talking about the new Flex Open Source SDK. Check out the Boston Flex Users Group web page for more information from here on out, about this and subsequent meetings.
I’m really pleased about this. It’s been something that badly needed to happen, given that this is one of the major nexuses (nexi?) of Flex development in the country. A bunch of us Boston types had virtually the same idea at the same time, and since then we have been laboring to bring this users group into the world. I’m excited about the potential for great conversations, new connections and novel things to learn. We’re going to have us a good time, yes we are!
360Flex Presentation Posted
February 26, 2008 on 8:16 am | In Flex, Programming | 4 CommentsThanks to everyone who just attended my presentation at 360 Flex in Atlanta this morning, “Advanced Case Study: Building the Allurent Display Architecture”. For anyone who’s interested (including attendees of my talk of course), you can download it at:
http://www.joeberkovitz.com/presentations/AllurentDisplayCaseStudy.pdf
Entries and comments feeds.
Valid XHTML and CSS.
All content copyright (c) 2006-2007 Joseph Berkovitz. All Rights Reserved.

