develooper Front page | perl.qa | Postings from March 2006

Re: [OT] TDD only works for simple things...

Thread Previous | Thread Next
From:
demerphq
Date:
March 30, 2006 23:44
Subject:
Re: [OT] TDD only works for simple things...
Message ID:
9b18b3110603302344g440451f3qbe911207e1ec1144@mail.gmail.com
On 30 Mar 2006 07:02:21 -0800, Randal L. Schwartz <merlyn@stonehenge.com> wrote:
> >>>>> "demerphq" == demerphq  <demerphq@gmail.com> writes:
>
> demerphq> While apparently some on this list apparently dont favour this
> demerphq> approach, im pretty much at a loss to come with a better way to test
> demerphq> the module.
>
> Did you also look at Devel::Cover, to see if your tests tickle the
> code paths?

Yep, and i was pretty happy with the coverage. And I used it to design
some additional tests.

Also, in this particular case I had an advantage in a sense, when i
first was putting together DDS I was able to steal a big chunk of the
tests for Data::Dumper.

Which incidentally also takes the "big test" approach. (IE, dump a
data structure and then check if it looks as expected.)

Yves



--
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About