How do I get code coverage of Perl cgi script when executed by Selenium?
Posted
by Kurt W. Leucht
on Stack Overflow
See other posts from Stack Overflow
or by Kurt W. Leucht
Published on 2010-05-25T00:38:41Z
Indexed on
2010/05/25
0:41 UTC
Read the original article
Hit count: 373
I'm using Eclipse EPIC IDE to write some Perl cgi scripts which call some Perl modules that I have also written. The EPIC IDE lets me configure a Perl CGI "run configuration" which runs my CGI script. And then I've got Selenium set up and one of my unit test files runs some Selenium commands to run my cgi script through its paces. But the coverage report from Module::Build dispatch 'testcover' doesn't show that any of my module code has been executed. It's been executed by my cgi script, but I guess the CGI script was run manually and was not executed directly by my unit test file, so maybe that's why the coverage isn't being recognized. Is there a way to do this right so I can integrate Selenium and unit test files and code coverage all together somehow?
© Stack Overflow or respective owner