On Tue, Mar 11, 2003 at 03:20:17PM +0100, [EMAIL PROTECTED] wrote:

> Cover works fine for my client client.pl script.
> But when I run a SOAP daemon, I can't get a cover_db produced: When I kill
> the daemon, the Cover is stopped too.
> 
> perl -MDevel::Cover start_daemon.pl
> 
> where start_daemon.pl contains something like
> 
> my $daemon = SOAP:Transport::HTTP::Daemon
> -> new (...)
> ->dispatch_to("my_modul.pm");
> 
> $daemon->handle;
> 
> When I send a kill -1 or kill -10 or kill -15 signal to the daemon, the
> daemon stops, but Cover stops too.
> How do I get a cover_db when running a daemon?

The trouble is that the DB is not written until your program ends.  Do
you have any way of stopping the deamon without killing it?  Otherwise,
you could try calling Devel::Cover::report() at some point from your
deamon.

> Another question is:
> How can I see which statements and branches are covered and which not?
> Because currently I know that for example 80% are covered, but not which
> branches are not covered.

Have you run the "cover" program?  That will give you a detailed textual
or html report.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

Reply via email to