Installing and using Devel::Cover on Win32 for the
first time today, I noticed several things and would
like to know if my experience is anomalous.

1.  Since I don't have a C-compiler, I first went to
ActiveState's PPM Repository, but Devel::Cover's
latest version (0.50) is listed as a FAIL on Windows. 
kobesearch.cpan.org directed me to
http://crazyinsomniac.perlmonk.org/perl/ppm/5.8/, from
which I was able to download and install a tarball of
Devel::Cover v0.47.  Following crazy's instructions, I
was able to install it successfully.

2.  The Devel::Cover docs describe this as the way to
run coverage on an uninstalled module:

    HARNESS_PERL_SWITCHES=-MDevel::Cover make test
    cover

I found that, on Windows, I had to switch the syntax
around to get it to work with nmake

    nmake test HARNESS_PERL_SWITCHES=-MDevel::Cover
    cover

Is that other people's experience?

3.  The module whose coverage I was examining was
ExtUtils::ModuleMaker.  I had used Devel::Cover on
this module on Darwin, so I knew what to expect for
results.  But when I ran 'cover' on Windows, it ran
coverage (and created coverage report .html files) not
just on the '.pm' files contained within EU::MM, but
also on *31* .pm files contained under my 'Perl/lib'
directory.

    lib/AutoLoader.pm
    lib/B.pm
    lib/B/Debug.pm
    lib/B/Deparse.pm
    lib/Carp.pm
    lib/Carp/Heavy.pm
    lib/Config.pm
    lib/Cwd.pm
    lib/DynaLoader.pm
    lib/Exporter.pm
    lib/Exporter/Heavy.pm
    lib/Fcntl.pm
    lib/File/Basename.pm
    lib/File/Glob.pm
    lib/File/Path.pm
    lib/File/Spec/Unix.pm
    lib/File/Spec/Win32.pm
    lib/Storable.pm
    lib/Test/Builder.pm
    lib/Test/More.pm
    lib/XSLoader.pm
    lib/base.pm
    lib/blib.pm
    lib/overload.pm
    lib/re.pm
    lib/strict.pm
    lib/threads.pm
    lib/threads/shared.pm
    lib/vars.pm
    lib/warnings.pm
    lib/warnings/register.pm

My hunch is that these are modules and pragmas called
by Devel::Cover.  Correct?

But why do I get these in the printout from
Devel::Cover on Windows but not on Darwin?

Jim Keenan



=====
Affiliations:  Perl Seminar NY / New York Perlmongers / Toronto Perlmongers


                
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 

Reply via email to