Hi.
I have the following system running: It executes tests for large project on CI server with code coverage (with Devel::Cover ) turned on,
after that it creates map telling which test executes which module. I.e. if, when running test1.t and modules Mod1.pm and Mod2.pm have non-zero statement coverage,
it add record to map: test1.t(Mod1.pm, Mod2.pm).
Next, that map is used to determine which tests to be ran in next CI run. I.e. if I have record test1.t(Mod1.pm, Mod2.pm), that means when Mod1.pm modified, then
test1.t should be ran, and if Mod3.pm modified test1.t should NOT be run. This way I run fewer tests each time and save lots of time running tests.
Question is: Devel::Cover is too slow, I need to find thing which is faster than Devel::Cover, but still fit my need. It can be as simple as:
- Devel::Cover hack which stop collecting stats (and start work faster) for the file after determining that the file has non-zero coverage.
- Some other module to get info that "some" code is executed from module X during run (except code in "BEGIN" blocks).
Any ideas?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.