Entries Tagged as 'Unit Testing'

Seeking My Dream Job

Learning , Unit Testing , ColdFusion , OOP 3 Comments »

Recent circumstances leave me in a position to seek out my dream job. Ideally, my next employment will be with an an organization that understands the benefits associated with:

  • object oriented software development
  • agile software development practices
  • software libraries and frameworks (MVC, ORM, Unit Test)
  • telecommuting and teleconferencing
  • continuous learning

If you are looking a passionate ColdFusion developer with a professional attitude and desire to write great software, please contact me.

My resume (MS Word format) is available for download.

Taming the MXUnit Ecplise Plugin with Apache Alias

MXUnit , Unit Testing , Apache 7 Comments »
If you are into Unit Testing and haven't yet heard of MXUnit, I definitely recommend giving it a whirl. Some things that stand out for me, thus far in my evaluation, are the simple, but extensible, assertions, the ecplise plugin, and the debug output. One gotcha that has come up for people when using the eclipse plugin, is that is was designed assuming that the package path to your components resolves directly from your web root. For people who run separate server instances, virtual machines, or develop locally with Apache virtual hosts, this is a show stopper. Luckily, for folks, like myself, who prefer to develop locally with Apache, getting the MXUnit eclipse plugin to work is simply a matter of adding a couple of Alias directives to your vhost.

Read more...

My Journey into Test Driven Development

Unit Testing , Test Driven Development 3 Comments »
If you wonder about Unit Testing and Test Driven Development, but are afraid of commitment, do yourself a favour, read Terrance Ryan's thoughts on "How to convince yourself to Unit Test". A couple of months ago, I made a commitment to start unit testing. I'll admit that it took a little while to wrap my head around the terminology and process. A good practice point for me was to run some of my first CFCs though Seth Petry-Johnson's var scope checker. When I discovered a plethora of un-scoped vars, I used the opportunity to write tests against the methods I was going to change. After only a few tests, I started to get this warm feeling of security. By the time my updates and tests were complete, I had a nice little suite that I could return to any time a change was required.

Read more...

Unit Testing DAOs with CFCUnit setUp() and tearDown()

Unit Testing , ColdFusion 5 Comments »
I recently starting Unit Testing with CFCUnit. Unit testing is not a new topic in the CF community, but it is new to me. I've found that there are a lot of aspects related to unit testing (like Mock objects and stubs) that you need learn about. As I continue to read and research unit testing techniques, I've seen items that go back years. One topic that I could not find a lot of information on is how to test DAOs and the SQL code in <cfquery/> tags. After rephrasing my search terms a few times, I found a great post by Robert Blackburn that also lead me to a suggestion by Paul Kenney on the old CFCDev list to wrap the test within <cftransaction/>. I liked the idea of using <cftransaction/>, but decided to try something a little different.

Read more...


Powered by Mango Blog. Design and Icons by N.Design Studio
RSS Feeds