Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: When Test Suites Attack

by Ovid (Cardinal)
on Oct 28, 2005 at 22:32 UTC ( #503794=note: print w/replies, xml ) Need Help??


in reply to Re: When Test Suites Attack
in thread When Test Suites Attack

I'm taking a roughly similar strategy now. Previously I had many of these:

is_xml $result, $expected, '... and we should receive the correct XML';

By generating $expected with a different algorithm (to ensure that I'm not just reaching into buggy code), I had to constantly maintain two different sets of code which did the same thing. It was very painful. Now I'm doing this:

is_well_formed_xml $result, '... and we should receive well-formed XML';

And to verify that it's correct, I'm adding more high-level integration testing. It's an annoying trade-off, but like what you're suggesting, it's a reasonable one.

Cheers,
Ovid

New address of my CGI Course.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://503794]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2021-02-28 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?