Several times in my career, I have worked in a software group that determined that
a) We needed a build/test system
b) We should write our own
c) We can have a
I would recommend that if you are going to write a testing system that you consider using the Test Anything Protocol. TAP has been in use for 20+ years, and widely used, especially for CPAN modules.
TAP's general format is:
1..N
ok 1 Description # Directive
# Diagnostic
....
ok 47 Description
ok 48 Description
more tests....
For example, a test file's output might look like:
1..4
ok 1 - Input file opened
not ok 2 - First line of the input valid
ok 3 - Read the rest of the file
not ok 4 - Summarized correctly # TODO Not written yet
Go to testanything.org for more information.
The examples are copied from http://en.wikipedia.org/wiki/Test_Anything_Protocol