in reply to Re: Automatic generation of tests
in thread Automatic generation of tests
I also posted this to the London Perl Mongers list, and from the feedback there, it seems that I wasn't quite as clear as I should have been. I see this as being a way to auto-generate the repetitive simple tests that I hate writing - exactly the ones that are needed for the example I gave. Any more complex method still needs all those tests to make sure that it is getting at least part of its argument sanity-checking correct. I do not propose that any such mechanism should completely obviate the need to write some tests by hand.
Even if I use Params::Validate or Class::Contract I'd still need to write those sorts of tests, just to check that I've used those modules correctly.
Your point about it maybe making the module harder to read is a good one, although one which can - I hope - be solved by choosing the right syntax.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Automatic generation of tests
by adrianh (Chancellor) on Feb 23, 2004 at 15:33 UTC | |
by DrHyde (Prior) on Feb 24, 2004 at 09:44 UTC | |
by adrianh (Chancellor) on Feb 25, 2004 at 11:54 UTC | |
by Jenda (Abbot) on Feb 25, 2004 at 14:56 UTC | |
by adrianh (Chancellor) on Feb 26, 2004 at 12:02 UTC |