Perl

Apr 20, 2010 14:14

In the middle of writing some perl test cases for code I've been writing (Trying to avoid writing the rest of the documentation)

Failed 4/15 test scripts, 73.33% okay. -2/719 subtests failed, 100.28% okay.

Leave a comment

Comments 2

mstevens April 20 2010, 16:24:27 UTC
I'm sure I saw some module somewhere to let you unit test your documentation.

Reply

nslm April 20 2010, 16:38:59 UTC
Perl::Critic will moan about missing documentation if you crank it up to "cruel", although it doesn't like things like unless... (Configurable I know)

Systematically going through and writing the test cases has been an enlightening process, especially when it comes to spotting duplicate code, at some point I might try the "write your test cases before you write your code"

Reply


Leave a comment

Up