...
Navigation Map | ||||||
---|---|---|---|---|---|---|
|
Prerequisite
Farcry unit tests uses http://mxunit.org/ with a wrapper that adds in Farcry hooks and webskin compatibility. You can get the latest copy of the plugin by checking out the code from the following SVN repository URL:
No Format |
---|
http://modius.svn.cvsdude.com/farcry/plugins/testMXUnit/trunk |
Once you have the code checked out into your plugins folder, you will need to add an Alias (in Apache) or a Virtual Directory in IIS. The path should be similar to the following:
No Format |
---|
Alias /mxunit /Users/robrohan/Sites/blarg/Yadda/plugins/testMXUnit/www/mxunit |
Note the path goes in one level deeper than most Farcry alias'.
You will then need to add the plugin to your plugin list in your www/farcryConstructor.cfm file. For example:
No Format |
---|
<cfset THIS.plugins = "farcrypoll,farcryradiostar,farcrycms,farcryverity,farcrycfximage,testMXUnit" /> |
You will then need to deploy the mxTest ContentType. You can do this in the webtop in the Admin tab. Select Developer Utilities from the pull down, and then click on the Types link under the COAPI Tools heading. Scroll down until you see mxTest and click the deploy link.
Finally, you will need to run updateapp on your application.
You are ready to write and run tests.
Running Tests
To run unit tests, log into the webtop and choose the Admin tab. From the pull down select Testing. This will display two menu options Run Tests and Configure Tests.
...