cfcUnit Runner released
13 comments Posted by: LauraThe more ColdFusion unit tests I needed to run, the more I wanted to have a nice interface where I could only see errors or failing tests, and that it would allow me to selectively run tests. That is why I created cfcUnit Runner, a Flex application to run cfcUnit tests. I believe it could also used to run CFUnit tests, but CFUnit will need to implement a service façade that Flex can use. You can read more in the project's page and use the forums and bug tracker of RiaForge. I have a live demo where you can see it running and I also made a short movie that shows all the features.
Live application (Flash Player 9 required). View source on right click enabled
Category: ColdFusion | Flex |
13 Comments so far
Write yoursUnfortunately it totally stole my thunder :o)
I've been working on something just like this for CFUnit (A flex based runner). What little I have so far is in SVN:
http://cfunit.svn.sourceforge.net/viewvc/cfunit/trunk/src/net/sourceforge/cfunitReport/
This is intended to be both a runner and a way to review the history logs of CFUnit (and of course re-execute any of the tests). Any suggestions would be welcome.
I would certainly be willing to help put together a CFUnit service façade which your runner could consume too – feel free to shoot me an email with the details if you are interested ([email protected]).
I think I would be great if we can make it work with CFUnit as well. Since cfcUnit already implemented the service facade, I would use their same bean classes for the returned results, otherwise, I would have to make some changes. But I am open to ideas on how to integrate it.
Do you have the compiled swf of what you've done somewhere to see?
thanks
It doesn't come with any other tests, but it should be simple to add a few. I'll see if I can write a couple to add to the download.
Very useful utility BTW. I'm hoping to use this in converting my app to Flex.
The easiest way to make it work is by having org and cfcunit in the root of your site. Alternatively, you can modify the file [cfroot]\web-inf\flex\services-config.xml and change the use-mappings value to true:
<use-mappings>true</use-mappings>
Sorry for the delayed reply, it’s a busy time of year :o)
No there is no demo site set up right now. CFUnit's site is housed on sourceforge.net which unfortunately runs on PHP. It is not really functioning yet anyhow. At this point I have more ideas then code :o)
I have taken a look at the source to see what you would need to get cfcUnitRunner integrated with CFUnit. I hope you don't mind if I e-mail some information and questions?
Thanks
I have a question about the live demo. What software you use to create that?
Thanks
Thanks
Chaz
I used Wink (http://www.debugmode.com/wink/) to make the video.
How could I test if my cfc method returns a
valid query ? I got everything running, but
even after going through the docs, I'm still
confused how to do just that.
Could you give an example ?