Catalyst + mod_perl + selenium: how to Devel::Cover?

125 Views Asked by At

I have a web application with lots of tests. I am currently only using Devel::Cover for coverage reports of my unit tests, but would also like coverage reports of my front-end Selenium tests.

I have tried 'use Devel::Cover' in my app psgi startup file. This creates the cover_db directory, but it remains empty while running my Selenium tests.

I would appreciate any pointers.

1

There are 1 best solutions below

0
oalders On

Have you tried using Plack::Middleware::Profiler::NYTProf

From the synopsis

use Plack::Builder;

builder {
    enable 'Profiler::NYTProf';
    [ '200', [], [ 'Hello Profiler' ] ];
};