Skip to content

Feature: Perl module testing

Josh Soref edited this page Jul 22, 2022 · 2 revisions

Perl module testing

Included in v0.0.20

Background

check-spelling is built around some small perl blobs.

Eventually, the shell script that drives it may also be converted into a perl script...

Testing coverage would make it easier to make changes to check-spelling and have confidence that they don't break things.

Perl modules

The first step is splitting the perl scripts into tiny .pl wrapper scripts and a similarly named .pm module file.

Testing

Using Test::More gives basic test coverage for the tiny files.

It also provides a roadmap for more test coverage.

Future steps

I might try Devel::Cover

Clone this wiki locally