Can I use autotest with a Perl project?

I'm currently working on a Mojolicious TDD application on my Mac, and I'm getting a little tired of manually running my tests every time I change the code.

After doing some Rails development, I really liked the automatic response I received from the self-test, and, interestingly, there is the Perl equivalent, or if there is some way to use autotest with Perl.

+4
source share
2 answers

One possibility is Test :: Continuous . It includes the autoprove command, which restarts the test package after updating the source file:

% sudo cpan Test::Continuous % cd MyModule/ % autoprove 
+7
source

Test module is your friend.

Take a look at Test :: Simple or browse all the different test modules at http://perldoc.perl.org/5.8.9/index-modules-T.html . If listed here, they are all part of the standard Perl distribution. In fact, if you are writing CPAN modules, you need to write a test suite using these test modules to go with it.

-2
source

Source: https://habr.com/ru/post/1343849/


All Articles