On 2/2/07, Paul Johnson <[EMAIL PROTECTED]> wrote:
On Fri, Feb 02, 2007 at 01:32:37PM -0600, Mike Malony wrote:
> I'm into testing, got some nice .t files, and prove tells me things I'd
> rather not hear. So, my next step on the straight and narrow path of
> testing, is to gauge my testing coverage.
>
> IN the doc, the synopsis suggests
> "perl -MDevel::Cover yourprog args
> cover"
>
> But what can you use in 'yourprog'?
>
> .t and .pl files run, do the tests and have some extra messages implying
> that cover was running, but there are no stats printed.
>
> prove also runs my tests, and produces stats, but only for the installed
> modules.
>
> Clearly I'm missing something. As a self taught perler on a windows system,
> who knows what craziness I'm doing. Any guidance appreciated (mild cheerful
> abuse expected)
I think you might just need to read a couple of lines further in the docs.
From the sound of things, you have created a module in the standard format,
and so you want the next section, "To test an uninstalled module:"
cover -delete
HARNESS_PERL_SWITCHES=-MDevel::Cover make test
cover
or perhaps you might prefer the newer, underdocumented alternative:
cover -test
which does about the same thing, but also includes a little light magic to
try running gcov on your XS files, if you have both gcov and XS files.
But perhaps a part of the problem here is that you don't have "make"
available? In that case, you should [....]
Download the free nmake from Microsoft at:
http://download.microsoft.com/download/vc15/patch/1.52/w95/en-us/nmake15.exe
and put it in a directory in your path (system32 or your perl\bin
directory come to mind).
:-)
Cheers,
Yves
ps: The free nmake has been available from that url for ages.
--
perl -Mre=debug -e "/just|another|perl|hacker/"