Search the web
Sign In
New User? Sign Up
extremeperl · Extreme Perl
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
the LectroTest framework for Perl   Message List  
Reply | Forward Message #122 of 500 |

QUOTE:

Unit testing is like finding needles in a haystack. The haystack is
your code's behavior. The needles are erroneous behavior.

Traditional unit testing practices require us to point out to the
computer each and every piece of hay in the haystack that we want to
check for errors. Hey, computer, check that piece of hay, please. Now
this one. Now this one, too. And over here, thank you. And, yes, that
one, too... That's a tedious process that grows old fast.

LectroTesting is different. Rather than pointing out the individual
pieces of hay, we merely point out the shape of the haystack. We also
tell the computer what a needle looks like, in general, so it will
know if it sees one along the way.

The computer takes care of the rest. It hunts through the haystack
until it finds a needle or we tell it to stop. If it finds a needle,
it outputs a counterexample t wrong, and we can add it to a list of
regression tests for future testing.

That's the idea, in a nutshell. A much better explanation can be found
in the slides for my talk on LectroTest.

SOURCE: http://community.moertel.com/ss/space/LectroTest

CPAN module:

[29] Test-LectroTest-0.201 - Easy, automatic, specification-based
tests
Uploaded: 16 Feb 2005
CPAN id: TMOERTEL (Tom Moertel)
Package: Test-LectroTest-0.201
URL: http://search.cpan.org/dist/Test-LectroTest


--
Carter's Compass: I know I'm on the right track when,
by deleting something, I'm adding functionality.




Thu Feb 17, 2005 6:06 pm

princepawn
Offline Offline
Send Email Send Email

Forward
Message #122 of 500 |
Expand Messages Author Sort by Date

QUOTE: Unit testing is like finding needles in a haystack. The haystack is your code's behavior. The needles are erroneous behavior. Traditional unit testing...
bauhaus@...
princepawn
Offline Send Email
Feb 17, 2005
6:06 pm

... I'd prefer something like the described Haskell module, which apparently creates unit tests. That is, I'd like the module to build a test file, which does...
Ed Grimm
ed@...
Send Email
Feb 20, 2005
9:26 pm

On 20 Feb 2005, at 20:58, Ed Grimm wrote: [snip] ... [snip] I don't understand why generated unit tests would be any more useful than including the module with...
Adrian Howard
ajh65537
Offline Send Email
Feb 21, 2005
7:49 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help