| « Adobe JIRA: please vote! | Flex Developer Remoting Edition » |
Halleluiah! Flash Mocks near you!
For someone who delays unit testing in Flex/Flash projects because of absence of Dynamic Proxies (and true Mock objects) now become good times. Asmock project hosted on Sourceforge reaches real success with generating classes/interfaces using loadBytes tricks. As Richard Szalay (the project owner) says the public API is actually a port from Rhino Mocks, a record/replay/verify mocking framework for .NET. There are still some limitations posted on StackOverflow (where you can leave your questions as well) but it is just beginning (beta 1 stage)!
I think it is really good news for unit testing on Flash platform. Looking forward for great improvements
And the most interesting thing is Richard is MS guy (he develops on .NET platform according his bio). ![]()
As you know there are at least two mock frameworks for ActionScript: mock-as3 and mock4as but both of them requires creating mock classes manually.
So lets try this new solution.
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
9 comments, 2 trackbacks
There are two download bundles: swc and sources+examples. So you need to review project's samples and all will be ok And maybe you should read Rhino Mocks documentation (beware: C#!
Or maybe you should read something like xUnit Test Patterns: Refactoring Test Code before.
Hi, i work with Richard and have been involved in the first use of ASMock on a live project. I can indeed confirm it is awesome!What i would say is that if you have any specific questions on it's use you should consider posting them on http://www.stackoverflow.org as we are both members and should be able to answer any questions you have regarding the framework.
James
Thank you James for info! I've fixed my post
Hi guys, a new beta should be released in the near future, complete with a tutorial series.Please log any bugs you find on the asmock website (asmock.sourceforge.net).
Thanks for your interest!
And thank you Richard for this awesome project! We missed for something like this
Any chance you could update your link to go to asmock.sourceforge.net? The sourceforge.net/projects/... page cannot be customised with information and the link to the main website is not very obvious.
Ah really! Missed it. Thank you for correcting me As I reported in my previous post there is finally solution for true mocks using loadBytes tricks. Nevertheless it will be great if Adobe provides some Dynamic Proxy solution for Flash Player/ActionScript (to avoid tricks and to easily create some othe...
As you know, Flex 4 introduces architecture which allows to separate containers (including data containers and lists) and their layouts. I've decided to invest some time in these new features and to create some cool layout. Investigating layouts deeper...
Any hints on how to use this project?
Sorry, meant http://stackoverflow.com/