Amen, brother. Test harnesses rock--and they're essential to regression
testing, when major requirments or implementation changes in the middle of
developing an app. In that case, you want to know that your individual fuse
still works like a champ.
The other cool thing about test harnesses is that they allow you to test a
range of values. For example, your Fusedoc looks like this:
--> quantity: an INTEGER
so you know you're expecting an integer. But what happens to your code if
these values for "quantity" get entered:
-3 : will you end up OWING the person money?
100000000000 : will you get a numeric overflow?
a : does your code ensure that only numbers work?
[space] : etc...
4+3
4.2
You can put these in a loop and test each of the values automatically. Stan
would be proud. And speaking of Stan, has anyone ever seen Jeff Peters and
Stan Cox in the same room at the same time? Coincidence or...?
Hal Helms
Team Allaire
[ See www.halhelms.com <http://www.halhelms.com> for info on training
classes ]
-----Original Message-----
From: Steve Nelson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 26, 2001 10:45 AM
To: Fusebox
Subject: Re: Test Harnesses
You wouldn't spend any time writing a test harness. You would "Grok the
Box" baby! Check out Jeff's Harness tool, it's horse-rockin-Stan-Coxin
cool.
http://www.grokfusebox.com/jgoodies.cfm
The thing about test harnesses is that they allow you to very quickly
verify that the code does what it should before you put it into a
production environment. You're right on the money about the distributed
environment, that's where test harnesses will play a big role.
St(an)eve Nels(Cox)n
Try my CFML code tester for free!
http://www.secretagents.com/tools/stomp/
(804) 825-6093
Nat Papovich wrote:
>
> I would like to see another version or two of the formurl2attrribs tag. I
> most certainly would change my mind if, upon careful review of the new
> system in an example small application, I found it to be better than the
> old. Anybody who does things differently than the standard and has some
> spare time, email Mr. Nelzian off list and see if he needs a hand.
>
> As far as the next topic (test harnesses), no, I haven't used them. I
really
> can't see spending the time to test a single fuse when I'm working on only
2
> fuses at once, and I finish them both in a few minutes (even if they're)
100
> lines long. Tell me how test harnesses are valuable if I'm not in a
> distributed development environment.
>
> Moving on,
>
> NAT
>
> p.s. Mini Hal convinced me that I should change my views about the
> formurl2variables tag. He exhibits powerful means of persuasion...
>
> > -----Original Message-----
> > From: Hal Helms [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 24, 2001 8:57 AM
> > To: Fusebox
> > Subject: RE: let's just rewrite it....
> >
> >
> > John Quarto vonTivadar wrote a very cool tag for versioning
> > custom tags and
> > let me put it up on my site (www.halhelms.com). It would be great
> > for a new
> > version of FormURL2Attributes.
> >
> > Hal Helms
> > Team Allaire
> > [ See www.halhelms.com <http://www.halhelms.com> for info on training
> > classes ]
> >
> >
> > -----Original Message-----
> > From: Erki Esken [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 24, 2001 11:29 AM
> > To: Fusebox
> > Subject: Re: let's just rewrite it....
> >
> >
> > Oh and Steve, make sure you FuseDoc the new version and give it some
> > version number before you release it.
> >
> > Erki
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists