Groups | Search | Server Info | Login | Register


Groups > perl.qa > #14

RE: Devel::Cover force adding unseen files - feedback requested.

Newsgroups perl.qa
References <AE072ADA2B2F4FB79AC38DF18B573A6E@black7> <alpine.DEB.2.00.1612261256300.16456@perl-community.de>
Subject RE: Devel::Cover force adding unseen files - feedback requested.
Date 2016-12-26 09:24 -0500
Organization PD Inc
Message-ID <B34382925AF344379167438C2895D4C7@black7> (permalink)
From jpyeron@pdinc.us ("Jason Pyeron")

Show all headers | View raw


> -----Original Message-----
> From: Tina Muller 
> Sent: Monday, December 26, 2016 07:04
> 
> Hi Jason,
> 
> On Sun, 25 Dec 2016, Jason Pyeron wrote:
> 
> > Coverage works great as part on continuous integration, 
> > until a new file is added and the unit tests are blissfully 
> > ignorant of the new file's existence.
> 
> Maybe this is not what you're looking for, but it works well
> for me loading any module in t/00.load.t:
> 
>      use Test::More;
> 
>      # unorthodox but works fine
>      use Module::Pluggable search_path => ['Module::Namespace'];
>      my @plugins = main->plugins;
>      for my $module (@plugins) {
>          use_ok( $module );
>      }
> 
>      done_testing;

Cute way to search, thanks.

<snip/>

> 
> Of course, this only works for .pm files.

Here in lies the rub, the files (e.g. https://sourceforge.net/p/logwatch/git/ci/master/tree/scripts/) are just plain old perl files.

-Jason

Back to perl.qa | Previous | NextPrevious in thread | Find similar


Thread

Devel::Cover force adding unseen files - feedback requested. jpyeron@pdinc.us ("Jason Pyeron") - 2016-12-25 21:38 -0500
  Re: Devel::Cover force adding unseen files - feedback requested. cpan2@tinita.de (Tina Müller) - 2016-12-26 13:03 +0100
    RE: Devel::Cover force adding unseen files - feedback requested. jpyeron@pdinc.us ("Jason Pyeron") - 2016-12-26 09:24 -0500

csiph-web