Do you know where your variables are? | |
PerlMonks |
Extending Test::Moreby water (Deacon) |
on May 19, 2004 at 15:10 UTC ( [id://354642]=perlquestion: print w/replies, xml ) | Need Help?? |
water has asked for the wisdom of the Perl Monks concerning the following question:
Hi.
Newbie testing question: I'd like put some sql assertions in my test suite -- basically, query should return zero rows, or N rows, or whatever. Not seeing anything thing in the Test:: family with this feature (did I miss something?), I planned to write my own Test::Sql module, extending Test::More, so I could write . The no_rows subroutine would grab the right DBI handle, query, retrieve rows, "OK" if no rows, and fail to displayu a rowcount and the first few rows returned if not zero rows. How do I extend Test::More so that the numbering still works? Do I emit my own "ok" or "nok", and how do I maintaining numbering? Is there a good test building faq somewhere I missed? Many THanks -water-
Back to
Seekers of Perl Wisdom
|
|