pileofrogs has asked for the wisdom of the Perl Monks concerning the following question:
I'm relatively new to developing perl modules with Test::Harness type tests, and I feel like I'm missing something.
Basically, I can write Test::Harness tests, but they only tell me good v. bad with very little detail. I like to have a lot of details while I'm actually developing a module. As a consequence, I'm writing two different test scripts (or batches of scripts). One that I use while I'm developing and one that is for packaging with the module and running in Test::Harness.
Is there a way to write Test::Harness tests that can give me lots of details when I'm running them by hand, yet work as expected when run by "make test"?
I'll try and clarify a bit what I mean by more detail. I might want to "print ref($thing)" from time to time. I might want to "print $total_score". Sure, I could "warn $total_score", but that would make it look terrible when testing with "make test". I know there's "make install TEST_VERBOSE=1", which is better, but still not good enough. I'd be happy to "special_print( ref($thing) );" rather than "print ref($thing)", if that's what it takes.
Thanks!
--Pileofrogs
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Testing Question
by tirwhan (Abbot) on Feb 24, 2006 at 19:39 UTC | |
by pileofrogs (Priest) on Feb 24, 2006 at 19:45 UTC | |
by tirwhan (Abbot) on Feb 24, 2006 at 19:56 UTC | |
by pileofrogs (Priest) on Feb 24, 2006 at 20:21 UTC | |
|
Re: Testing Question
by xdg (Monsignor) on Feb 24, 2006 at 22:02 UTC | |
by mdxi (Beadle) on Feb 26, 2006 at 10:51 UTC | |
|
Re: Testing Question
by BrowserUk (Patriarch) on Feb 24, 2006 at 21:22 UTC |