An Architect's View

ColdFusion, Software Design, Frameworks and more...

An Architect's View

cfcUnit CFEclipse Facade updated

May 6, 2007 · 6 Comments

The title says it all. Download the updated version from my 'software' pod. What's new? A bug fix for CFC paths. The ability to run test suites as well as test cases.

Tags: coldfusion

6 responses so far ↓

  • 1 Matt Williams // May 7, 2007 at 9:39 AM

    Thanks Sean. This is useful.
  • 2 John Farrar // May 7, 2007 at 2:49 PM

    I have a test case that is unusual. It requires looking at a substructure in an XML structure. It would help for testing sosXML.cfc on labs. Right now that particular unit test fails.

    (Oh, nice facade! Thanks.)
  • 3 Sean Corfield // May 7, 2007 at 6:47 PM

    @John, thanx. Glad you're using cfcUnit. Not sure whether your comment was informational or a cry for help?
  • 4 bayo // May 8, 2007 at 11:58 AM

    Nice! Thanks, Sean.
  • 5 Anthony // May 25, 2007 at 8:42 AM

    First of all, this is great! Once I got it working I was very pleased. Thank you.

    Second of all, it did take some tweaking on my end to get it working. As others have posted, sometimes the view just "does nothing" which could be a number of things (bad URL, etc.) In my case it was because the CFUnit view automatically prependeds the project name to the link when I open a file (e.g. Project.path.to.cfcdirectory.)

    As soon as I removed "Project" the view worked perfectly. I don't know if this is unique to my setup/environment but they way I dealt with it is by adding the following line to the execute method:

    <cfset testCaseName = right(testCaseName,len(testCaseName)-find(".",testCaseName))>

    It's possible others' environment is similar to mine, so I offer this as a possible workaround to getting this very welcome feature going.

    Thanks again, Sean!

  • 6 Sean Corfield // May 25, 2007 at 10:14 AM

    @Anthony, in theory the latest version automatically does this - if it cannot instantiate the initial path (project.path.to.component), it strips off the first piece and tries again.

Leave a Comment

Leave this field empty: