>I have been looking for a way to contribute. I am mainly a doc person these 
>days, although I have built a bunch of Flex apps over the past five or >six 
>years. I would be happy to take on documenting the EventRule.

Awesome, Amy Blankenship started on some of this a while back. If she is on 
this list she might have some to contribute as well. In the meantime, here are 
the tests that go along with the feature:

https://github.com/apache/flex-flexunit/tree/master/FlexUnit4Test/src/org/flexunit/events/rule/cases

To give some context, the EventRule is supposed to be a really, really easy way 
to handle testing of things that use Events as their primary communication 
mechanism. It supposed to be an easier version of something like this (which 
was for FlexUnit .9):

http://blogs.adobe.com/tomsugden/2008/01/post.html

In General, Rules are a way to add extensibility to the flexunit framework. So 
the EventRule is basically an extensibility package for testing events.

The important starting point of all of these tests is:

[Rule]
public var expectEvent:EventRule = new EventRule();

Take a look at those to start. Feel free to ask tons of questions. I am happy 
to answer. This may all seem a bit obtuse at first but this is one of those 
gems no one knows about.

Thanks,
Mike


Reply via email to