... I like to distinguish between acceptance and unit tests. For unit tests, I would add: - to validate the API - to enable refactoring - to keep the cost of...
23
Drew Taylor
drewbie74
Feb 6, 2002 11:05 pm
Could you explain a little more about the two types of tests you mention below? Specifically the acceptance tests, and how they would relate to web apps. I'm...
24
Rob Nagler
robnagler
Feb 7, 2002 5:54 am
... There are many different kinds of tests including performance and load testing. In XP we're mostly concerned about unit and acceptance testing. ... What...
25
Drew Taylor
drewbie74
Feb 7, 2002 6:32 am
... How do you do that? I've only heard of tools that allow you to create a script and then playback that script. This is semiuseful, but what happens if you...
26
chromatic
chromatic_perl
Feb 7, 2002 6:46 am
... If it's hidden, it's not hidden very well. :) Here's my take. Programmers don't want to write tests because: - it's not their job - it's not "real"...
27
Drew Taylor
drewbie74
Feb 7, 2002 5:03 pm
... All your points are right on the money. I would venture to guess that most "good" programmers would not be against writing tests. IMHO, it's usually ...
28
Ged Haywood
ged@...
Feb 8, 2002 1:11 am
Hi all, ... [snip] ... See attached. I once had to fly to seven or eight different countries over a period of several weeks to fix a $0.25 problem in a couple...
29
Rob Nagler
robnagler
Feb 9, 2002 12:46 am
... The first step is to make sure your interface has structure. If you are testing arbitrarily constructed templates, you're going to have a rough time. If...
30
cdhutch_99
Feb 13, 2002 11:48 pm
... Rob, Can you upload an example of a filled-in story card? I'm curious about the level of detail you're using in these. We always have a problem of getting...
31
Stas Bekman
stas@...
Feb 21, 2002 11:37 am
... Since you are talking about testing apps against webserver, I'd plug in the new Apache::Test framework which most Apache::* modules' and frameworks39;...
32
Rob Nagler
robnagler
Jun 11, 2002 4:16 am
Chris et al, Sorry for the delay... I uploaded some story cards. They are from the book. My real story cards are a mess. The payments-planning-game card is...
33
TechGirl77@...
techs_girl77
Jun 22, 2002 7:42 am
Don't Miss This Exciting Opportunity! Superb Computer Based Training OFFER Please click on link below: ...
34
asimjalis
Jul 22, 2002 1:56 am
For some reason writing unit tests in Perl feels really weird. I feel like Perl code is simply not supposed to be OO in the same way as Python and Java are. OO...
35
Rob Nagler
robnagler
Jul 22, 2002 2:24 pm
... For practical reasons, we manage all data through classes. This simplifies the calling convention (we always use -> when calling an API). Classes can...
36
Asim Jalis
asimjalis
Jul 22, 2002 8:27 pm
Hey Rob, ... What do you mean by "declarative tests"? Could you give an example? Asim __________________________________________________ Do You Yahoo!? Yahoo!...
37
Rob Nagler
robnagler
Jul 23, 2002 11:41 am
... A declarative language allows you to specify your intent and the interpreter executes the program in whatever order it sees fit. SQL is a declarative...
38
Rob Nagler
robnagler
Jul 29, 2002 3:12 pm
I'm trying to get an idea what people consider useful refactorings. The following refactoring is a very simple one, but I consider it useful to demonstrate how...
39
Ilya Martynov
juilru
Jul 29, 2002 3:29 pm
... RN> [..snip..] RN> TITLE: Replace Conditional with Modifier RN> SYNOPSIS RN> You have an if statement with a one-line then clause. RN> Use a Perl statement...
40
Drew Taylor
drewbie74
Jul 29, 2002 3:53 pm
Cool! I didn't know this trick. Hmmm, now I have one more reason I can give my coworker to use emacs instead of vi. ;-) Thanks Ilya! Since you seem to be the...
41
Ilya Martynov
juilru
Jul 29, 2002 4:07 pm
... DT> Cool! I didn't know this trick. Hmmm, now I have one more reason I DT> can give my coworker to use emacs instead of vi. ;-) Thanks Ilya! DT> Since you...
42
Ged Haywood
ged@...
Jul 29, 2002 6:52 pm
Hi there, ... Very simple ones. ... I suppose it's my age. I HATE Perl's statement modifiers. And I REALLY REALLY HATE "unless". ... Like I said. ... ...
43
Rob Nagler
robnagler
Jul 30, 2002 4:25 am
... Every refactoring can be implemented in reverse. This is an important part of design by refactoring. This is the "art" of refactoring imo. The goal is...
44
chromatic
chromatic_perl
Jul 30, 2002 4:40 am
... I like this one, especially if you demonstrate that it's reversable. I only have one nitpick. ... if 'undef39; is intended to return a demonstrably false...
45
Rob Nagler
robnagler
Jul 30, 2002 5:23 am
... I hope to avoid showing the reverse of every refactoring. It maybe makes sense to show one or two explicitly. ... No, you need to check if it is undef....
46
chromatic
chromatic_perl
Jul 30, 2002 5:31 am
... That's fine. It's important to demonstrate that you don't always go in one direction. ... The bare return operator respects the calling context: sub false...
47
Ged Haywood
ged@...
Jul 30, 2002 11:40 am
Hi all, ... 73, Ged....
48
Rob Nagler
robnagler
Jul 30, 2002 1:27 pm
... Will do. ... Well, you learn something new everyday. :) Thanks! Rob...
49
Stephen Nelson
stephen_e_ne...
Jul 30, 2002 3:39 pm
I've got a few refactorings on my Perlmonks homenode: http://www.perlmonks.org/index.pl?node_id=2329 There are also references to other refactorings there. I'd...
50
Adrian Howard
ajh65537
Jul 30, 2002 6:33 pm
... [snip] Okay... here's one. (I don't have my Fowler to hand, so please excuse me if I wander off the "standard" format :-) ... TITLE: HashBecomesObject ...
51
Stephen Nelson
stephen_e_ne...
Jul 30, 2002 6:36 pm
Seconded.... I've been planning on doing that for way too long. ... [Non-text portions of this message have been removed]...