FlexUnit: Category

Category: FlexUnit

Wanted: Technical Writers with Free Time and an Altruistic Spirit

Posted At: July 8, 2010 6:07 PM | Posted By: Michael Labriola
Related Categories: Adobe Flex, FlexUnit, Projects

As many of you know, I am the project lead for FlexUnit 4.x. The technical side of the project is in great shape with new features, releases and tests forthcoming, however, the place we are really lagging is good documentation.

Right now the FlexUnit team is quite small and 120% of our time is occupied with development and user support. Unfortunately this means that the best engineered plans for good documentation seem to get farther behind as the days go on.

We are looking for a few people who would be willing to own large chunks of the documentation. We would arrange conference calls as needed with the developers of key sections to talk through approach, technical details and future plans. The goal would be to ensure you have a full understanding and access to anyone you need when writing. Ultimately, it would also give you a few things.

First, you would have unlimited access to learn FlexUnit at a very, very deep level. Second, you could help create a volume of work (I am hoping we can produce both wiki content and eventually a comprehensive PDF book) which will continue to be attributed to you. Third, that attribution plus future recommendations from myself and others on the team and in this industry are guaranteed (and very helpful for future interviews).

Anyone who is seriously interested should leave a comment on this post and I will reach out to you immediately.

If you want to take a look at our current efforts, head over to docs.flexunit.org

Thanks,
Labriola

Comments (4)

FlexUnit 4.1 Beta 1 Now Available

Posted At: June 7, 2010 6:06 PM | Posted By: Michael Labriola
Related Categories: Adobe Flex, FlexUnit

For months now the core FlexUnit team and contributors have been working diligently to move the next release of FlexUnit forward. The 4.0 release was a success but we always knew there were many optimization and enhancement still to come. Today, we are happy to announce some of those are available as the 4.1 public beta begins. You can download the latest bits from the flexunit.org download site. Here are a few feature descriptions and bullet points of some of the new features in the FlexUnit 4.1 world.

Parameterized Testing

There are times when you need to repeat a test across a series of data points. Imagine a class that does a complex calculation based on input values. It is likely that you would want to test hundreds or thousands of different input values, checking each of their expected outputs to feel comfortable that this class was behaving properly. Or, perhaps you have a whole series of components which implement an interface and you wish to verify that setting the ‘x’ property on each of those objects dispatches and expected event or updates a given property. These are both cases where Parameterized testing can simplify your life. More

Comments (3)

Using FlexUnit 4 with Flash CS5

Posted At: May 10, 2010 10:18 PM | Posted By: Ben Schmidtke
Related Categories: ActionScript, Adobe Flash CS, Adobe Flex, FlexUnit

After all these years I still love working in the Flash IDE. It is a raw pure form of ActionScript that presents you with a blank canvas to express your creativity. Having said that, our mindless creations need solid testing before being released to the public. Today I will talk about the most direct way of using Flex Unit 4 with your ActionScript 3: Flash CS Project, by directly adding the Flex Unit SWC to your FLA. This gives full access to the FLA library during the tests. The easiest way to describe this is the FLA library is comprised of Class objects that are not external files, and they need testing too. More

Comments (4)

FlexUnit in Flash Builder Bugs plus TDD

Posted At: September 13, 2009 8:09 PM | Posted By: Michael Labriola
Related Categories: 360Flex, Adobe Flex, FlexUnit, Max 2009, Presentations

I just finished my presentation materials for my Test-driven development session at Adobe Max, and I am pretty excited how it turned out. It is a 90-minute BYOL (Bring your own laptop) lab, which is always challenging. Each person showing up with a diverse setup and (hopefully) our files installed.

So, if you are planning to head to Max, and you are interested in TDD, try to attend. I think it will be well worth the effort.

That said, there will also be two sessions at the 360|Flex Max unconference where we will be reviewing the FlexUnit 4 framework from the inside out. The goal here is to provide initial context for those interested in becoming committers on the project. FlexUnit 4 is a highly functional testing framework, but it is also complex. Until we have the chance to document every corner, this might be your best chance to learn the ins and outs of it.

Finally, working on this session has given me the opportunity to work with the FlexUnit plugin in Flash Builder. I must say I am very pleased with how this is evolving. Nonetheless, there are a few enhancements I would still like. If you are of a like mind, read through the bugs and cast your vote.

If you agree, vote away. Hope to see you at Max,
Mike

Comments (1)

FlexUnit 4 and Flex 4 presentations galore

Posted At: September 3, 2009 12:09 AM | Posted By: Michael Labriola
Related Categories: 360Flex, Adobe Flex, DP News, flexcamp, FlexUnit, Max 2009

So after a very welcomed summer lull in travel, I am gearing up for the fall speaking season. A good portion of my time this fall will be spent discussing, encouraging the use of, and getting Feedback on the FlexUnit 4 project. The rest will be spent teaching about the early architecture and internals of the future Flex 4 product.

If you have tried either of these and want to discuss, or if you haven’t had the time and want to learn more first, please come and support one of the following great events where I will be presenting.

September 5th, Rimini, Italy at Flash Camp on the Beach

    Testing with Flex and Flash Builder
October 5th – 7th, Los Angeles, CA at Adobe Max, Los Angeles, CA
    5th – Test Driven Development with Flash Builder
    5th – Creating Custom Components in Flex 4
    5th – Book Signing and Meet the Authors Event

    6th – Creating Custom Components in Flex 4
    6th – Battle of the Flex Frameworks Panel

    7th – Creating Custom Components in Flex 4- Twice

    Also, in the next couple of days we will be announcing the details of a special event on the 6th and 7th in coordination with the 360|Max unconference for individuals interested in becoming contributors to the FlexUnit 4 project.
October 15th and 16th in Omaha, NE at the Heartland Developers Conference
    15th – From Concept to Concrete: Programming a Designer’s Vision
    16th – Reanimating Dead Data with Flex
October 17th and 18th in Raleigh, North Carolina at CFinNC
    Next Generation Testing

I hope you have the opportunity to participate and engage with the Flex community at some of these community events.

Cheers,
Mike

Comments (0)

FlexUnit 4 Beta 2 is finally here (and it likes your CI Server)

Posted At: August 24, 2009 5:08 PM | Posted By: Michael Labriola
Related Categories: Adobe Flex, DP News, FlexUnit, Fluint, Projects

Alright, it has been an insane few months but we are ready. FlexUnit 4 Beta 2 is now available on the adobe open source site. You can download the turnkey project to play with built libraries quickly or follow the directions on the Source page to grab the source yourself.

There are a huge number of fixes and enhancements in this version, all of which you can find for yourself on the release notes page but the largest change of note is the availability of CI tasks and a CI listener to allow easy hooks into the continuous integration system of your choice. A lot of hard work went into building and vetting these out on different platforms but I wanted to call out a few names in particular.

First, thanks to Peter Martin, because all of this was based on his original work for the FlexUnit .9 tasks. Second, thanks to Joe Adkins, Conrad Winchester, Brian LeGros, Xavi Beumala and Simeon Bateman all of who contributed to development, testing and/or generally being good spirits despite inevitable development slow-downs and hiccups. This is beta code, so there are a couple of caveats and to-do items still on the list, so please be sure to check out the README file in the sample project, or read it on the wiki.

So, take a few minutes, grab the bits and play around. If you have any questions or comments, in particular around the new CI tasks, head over to the FlexUnit forums. If you believe we mutually disagree on the definition of a functional feature, then please log it into the bug database.

This is a completely community run project and your help and support are always welcome.

Cheers,
Labriola

Comments (4)

FlexUnit 4 and Flash Builder 4

Posted At: June 3, 2009 9:06 PM | Posted By: Michael Labriola
Related Categories: Adobe Flex, FlexUnit, Fluint

So, suppose you are the kind of person who has downloaded the FlexUnit 4 turnkey beta from opensource.adobe.com. Suppose you are also the type of person who downloaded the new Flash Builder 4 beta from labs.adobe.com. Well then perhaps you are thinking to yourself, “Self, I would really like to see the results from my FlexUnit 4 tests right inside of the FlexUnit Result view in Flash Builder. I wonder how I would do that.” Well, I would personally suggest you add the following import to your FlexUnit4Turnkey.mxml file: import org.flexunit.runner.notification.async.XMLListener; And then add the following line before your call to the run method of the FlexUnit 4 core. core.addListener( new XMLListener( "FlexUnit4Turnkey" ) ); Ideally, it will look something like this: core = new FlexUnitCore(); core.addListener( new XMLListener( "FlexUnit4Turnkey" ) ); core.run( FlexUnit4Suite, HamcrestSuite, FlexUnitIn360 ); Where the string “FlexUnit4Turnkey” represents the name of the project where this MXML file resides. If you open the FlexUnit Results view in Flash Builder and execute this MXML file, you will see the results in Flash Builder. Unfortunately, you need to be aware of some of limitations. First, Flash Builder doesn’t know how to generate these tests yet and will currently fail if you click any of the buttons such as Run All Completed Tests, Run All Failed Tests, etc. We can just give it back information about the success and failure, Flash Builder doesn’t yet know how to choose, run or specify FlexUnit 4 tests. Also, and perhaps more severely, Flash Builder considers any Ignored tests a pseudo-failure. Truthfully, it just doesn’t understand what we mean, so, in some cases, it looks like a failure, but in others it doesn’t. Right now, FlexUnit 4 beta still also outputs to the console, which means Flash Builder will try to keep switching you over to the console view, but this will be a little cleaner in our (FlexUnit’s) next beta drop. In either case, it is perhaps a bit of a novelty for the moment, but it demonstrates the power of the listener model that FlexUnit 4 uses. Wait till you see the stuff coming for Continuous Integration :) Cheers and have fun, Labriola

Comments (16)

FlexUnit 4 in 360 seconds

Posted At: May 3, 2009 10:05 PM | Posted By: Michael Labriola
Related Categories: DP News, FlexUnit, Fluint, Projects

About a year back I remember reading a blog post called JUnit in 60 seconds. At the time I pondered how great it would be to have these features in Flex. Little did I know that today I would be writing this post introducing the Flex world to FlexUnit 4.

So, first a little background. FlexUnit 4 is the name for an upcoming release of FlexUnit. It represents the best features of the FlexUnit project combined with the best features of the Fluint project. It is built on top of a newly created foundation designed to support the latest techniques used in the JUnit testing community, but written for the specific requirements and needs of the Flash Player. Top all that off with an extensibility layer that encourages developers to create new types of test runners and extensions while simplify the process of integrating the results into IDEs and continuous integration environments, and it should give you an idea why I am excited about this release.

If it sounds interesting to you as well, the public alpha of this upcoming release is now available as a turnkey test project you can download from the adobe open source site. I hope you will use it to learn and explore the new features, and to provide feedback about any bugs you find along the way. However, it is an alpha, so locations and names of classes, signatures of methods and even which features are supported are all subject to change before release. It is not be advisable to use this as your production testing system.

Speaking of features, let’s jump in. There is a bit more content to go through than the original 60 second tutorial, so, I think you will need 4-6 minutes to get through it all. To keep things consistent, many of these examples are adapted right from the JUnit in 60 seconds site referenced above.

More

Comments (43)

Flex Camp 360 NJ

Posted At: October 7, 2008 9:10 PM | Posted By: Jeff Tapper
Related Categories: actionscript3, adobe, AIR, as3, flex, flex2, flex3, FlexUnit

File this under the better late than never…

 

On September 26 and 27th, the folks who bring you Flex 360, put on a 2 day "Flex Camp" in New Jersery, which went over extremely well.  I was presenting on Testing with Fluint (formerly known as DPUint).  Of course, I promised my slides and materials would be up on here before the end of the weekend.  Well, realizing its over a week later, I'm finally getting them uploaded now.

 

So, if you were one of the many asking for those materials, here they are. 

slides
source code

Comments (2)