I've done now Devel::Cover tests for the old and new tests.

$ perldoc Devel::Cover
$ HARNESS_PERL_SWITCHES=-MDevel::Cover make test
$ cover

what                   stmt   bran   cond   sub   pod    time   total
3 tests only:        11.4     6.3     9.5   11.1  16.7  100.0    9.9
with my tests      48.5    26.0   28.6   63.7  16.7  100.0  43.2

That means that with my included tests we get a coverage of 43.2%,
compared to 9.9% with the current tests.
I'm working on getting closer to 100%, but the pod coverage of 16.7% is poor.

It's interesting to see the detailed reports, which statements or if-then-else
branches are never executed in the tests.

On 7/11/05, Robert May <[EMAIL PROTECTED]> wrote:
> >Reini Urban sagte:
> >>>I've re-added my GUI.pm patched and added the tests.
> >>>For me all tests work ok on cygwin and MSVC6, perl-5.8.6
> >>>With proper ChangeLog this time
> >
> >Also verified ok with latest perl-5.8.7 for cygwin.
> >All tests pass, now even without the global destructor warning as before.
> >
> >So tested with perl-5.8.7 and 5.8.6 with cygwin, and
> >ActivePerl-5.8.6.811 with MSVC6
> >
> Great.  I'll try to have a look at this properly later in the week.
> Rob.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

Reply via email to