Stats
Version
1.0.1
Wheels Compatibility
1.1.8, 1.1.7
Downloads
43
Last Updated
May 24, 2012
About Plugins
Plugins allow you to extend or modify default Wheels application behavior. To use, you just drop the zip file into your plugins directory and reload your application.
Read Using and Creating Plugins for more information.
JUnify
Make the CFWheels test framework return jUnit XML
Author
Project Home
https://github.com/chapmandu/junify-cfwheels-plugin
Description
JUnify will run your CFWheels unit tests, then return the results in jUnit formatted XML. Use it for automated testing with your Continuous Integration server.
Following the road to jUnit Glory
1. Install the JUnify plugin
2. Create a JUnifyController.cfc controller that calls the JUnify() function*. (See example below)|
3. Write some unit tests for your app or plugin
4. Make a call to your JUnify url
* Controller filename and action names are unimportant
JUnifyController.cfc
<cfcomponent extends="Controller">
<cffunction name="index">
<cfset JUnify(params)>
</cffunction>
</cfcomponent>
Your JUnify URL
http://yourserver/index.cfm?controller=junifycontroller&action=index&type=app
Pay particular attention to the type parameter.
type=app will run tests for your application
type=myplugin will run tests for your plugin
type=core will run tests for the CFWheels framework itself
Props to Rocketboots for their RocketUnit test framework
Usage/Examples
<cfcomponent extends="Controller">
<cffunction name="index">
<cfset JUnify(params)>
</cffunction>
</cfcomponent>
