TDD Archives

Perl Testing in 2023

With my open source work, I've historically taken an approach which relies more on integration testing than unit testing, but with some of my newer projects, I've tried adopting principles from $paidwork and applying them to my free software.

This is a quick run-down of how I'm structuring my test suite in newer projects. It's likely that many of my existing projects will never adopt this structure, but some may.

Thank You, Coveralls.io

For letting me know my test coverage has increased by 0.00006%.

Coveralls.io screenshot

(Seriously it's a pretty cool service though.)

10 Out Of 10

How to File a Perfect Bug Report

My criteria for a perfect bug report...

  1. The report is filed correctly.
  2. The issue identified affects the latest version of the software.
  3. The report includes a test script illustrating the problem
  4. ... which is self-contained
  5. ... and is minimal
  6. ... and conforms to the Test Anything Protocol.
  7. The report includes an explanation.
  8. The report includes patch
  9. ... which is well-written
  10. ... and obeys coding conventions.

Obviously all reports of genuin…

About Toby Inkster

user-pic I'm tobyink on CPAN, IRC and PerlMonks.