Perl build, unit testing, code coverage: A complete working example

前端 未结 5 594
长情又很酷
长情又很酷 2020-11-30 16:51

Most Stackoverflow answers that I have found in regards to the Perl build process and unit testing and code coverage simply point me to CPAN for the documentation there. Th

5条回答
  •  借酒劲吻你
    2020-11-30 16:57

    In response to Kurt, I would propose this alternative to his BuiltTest.PL script.

    use strict;
    use warnings;
    use Module::Build;
    
    my $build = Module::Build->resume (
      properties => {
        config_dir => '_build',
      },
    );
    
    $build->dispatch('build');
    $build->dispatch('test');
    

    It reuses the database build by Build.PL (and thus assumes that already ran).

提交回复
热议问题