inline2test
Perl extension for embed tests and code examples in POD
Install
- All systems
-
curl cmd.cat/inline2test.sh
- Debian
-
apt-get install libtest-inline-perl - Ubuntu
-
apt-get install libtest-inline-perl - Kali Linux
-
apt-get install libtest-inline-perl - Fedora
-
dnf install perl-Test-Inline - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install libtest-inline-perl - Raspbian
-
apt-get install libtest-inline-perl
libtest-inline-perl
Perl extension for embed tests and code examples in POD
Test::Inline is a way to embed tests in the same file as your source code rather than in a separate file. The idea is, the closer your tests are to your code and docs, the more likely you'll keep them up to date.