For those 11 folks...

...who so far downloaded the code. I'd be pleased to hear from you, if you have had a chance to install it and run it. I am especially interested in the experience so far, any issues, such as unclear install instructions, config problems, calling the CFC and of course any bugs.

Feel free to comment here, use the forums or even log an issue with the tracker!

Subversion repository is available

I finally got round to setting up the Subversion (SVN) repository today. So if you feel like living dangerously you can grab the source from SVN trunk.

Installing and using Stubbie

I thought it would also be useful if I post the installation and usage instructions here.

Installation

The simplest way to install stubbie is to just place it in your webroot, alternatively you can just create a mapping called /stubbie and point it to your install folder.

Usage

Using stubbie requires 2 steps the first is editing config.xml and the second is calling the component.

Step 1 Open up the config.xml file and edit it the following settings

<stubbie>

   <config>
      <appName value="myAppName" /><!-- the name of your app, e.g. the folder name under which the app resides, used to suffix the root path of your app -->
      <appPath value="/Full/Path/To/Root/Of/Your/App" /><!-- full path to the app, minus the app folder name -->
      <packageRoot value="com.myDomain" /><!-- if you have a mapping for your app's cfcs, e.g. com.mydomain, specify it here -->
      <saveTestFilesTo value="" /><!-- Not implemented yet, optional storage location for the test stubs -->
      <unitTestFramework value="cfcUnit"/><!-- cfcUnit and cfUnit are allowed options here -->
   </config>
   
</stubbie>

Step 2

Place the following code anywhere you wish to invoke stubbie from:

<cfset configFilePath = ExpandPath("./config.xml")/>

<cfset stubbie = CreateObject("component","Stubbie").init(configFilePath)/>
<cfset stubbie.build()/>

BlogCFC was created by Raymond Camden. This blog is running version 5.5.006. | Protected by Akismet | Blog with WordPress