| > Can anyone please clarify this a bit? 
| 
| With respect to exercising modules, this should all work.  Did the
| module pass its own tests?  Actually, there's only one test at the
| moment, but it does include a module.  What you did should have worked.
| You should have got a report about t/foobar.t and Foo::Bar.pm.  I've run
| some Gedcom.pm tests, and they seemed to give reasonable results (from
| the point of view of being believable, rather than having good coverage.)

Here's what I got...

tanqueray:~/code/reefknot/Net-ICal/t> perl -MDevel::Cover
embedded-Net-ICal-Component.t

... lots of output, blah blah blah...

1..13
# Looks like you failed 6 tests of 13.
# Looks like your test died just after 13.
------------------------------------------ ------ ------ ------ ------ ------
File                                         stmt branch   path   cond total
------------------------------------------ ------ ------ ------ ------ ------
embedded-Net-ICal-Component.t               79.17    n/a    n/a 100.00 79.17
Total                                       79.17    n/a    n/a 100.00 79.17
------------------------------------------ ------ ------ ------ ------ ------


As far as I can see, it never got down into the module.  The module's
called like this, from embedded-Net-ICal-Component.t ...

use lib "./lib";
use Net::ICal;

Ahhhh! *There's* my problem... I was calling it from the wrong place.
When I move back up a directory and run "perl -MDevel::Cover
t/embedded-Net-ICal-Component.t" I get this:

------------------------------------------ ------ ------ ------ ------ ------
File                                         stmt branch   path   cond  total
------------------------------------------ ------ ------ ------ ------ ------
lib/Net/ICal/Alarm.pm                      100.00    n/a    n/a   9.09  60.00
lib/Net/ICal/Attendee.pm                     0.00    n/a    n/a   0.00   0.00
lib/Net/ICal/Calendar.pm                     0.00    n/a    n/a   0.00   0.00
lib/Net/ICal/Component.pm                   47.44    n/a    n/a   7.32  39.09
lib/Net/ICal/Duration.pm                     0.87    n/a    n/a   0.00   0.61
lib/Net/ICal/ETJ.pm                          6.45    n/a    n/a   0.00   4.35
lib/Net/ICal/Event.pm                        0.00    n/a    n/a   0.00   0.00
lib/Net/ICal/Freebusy.pm                     7.69    n/a    n/a   0.00   5.88
lib/Net/ICal/Journal.pm                      0.00    n/a    n/a   0.00   0.00
lib/Net/ICal/Period.pm                       0.00    n/a    n/a   0.00   0.00
lib/Net/ICal/Property.pm                    45.45    n/a    n/a   0.00  39.22
lib/Net/ICal/Recurrence.pm                   0.00    n/a    n/a   0.00   0.00
lib/Net/ICal/Time.pm                         3.70    n/a    n/a   0.00   3.45
lib/Net/ICal/Todo.pm                        21.05    n/a    n/a   0.00  14.29
lib/Net/ICal/Trigger.pm                     83.33    n/a    n/a   0.00  58.82
lib/Net/ICal/Util.pm                         0.00    n/a    n/a   0.00   0.00
t/embedded-Net-ICal-Component.t            100.00    n/a    n/a 100.00 100.00
Total                                       16.20    n/a    n/a   1.33  12.58
------------------------------------------ ------ ------ ------ ------ ------


That's *much* more like what I expected :)

Next time I'll just talk to the teddy bear.

K.

Reply via email to