in reply to Devel::Cover for myfile.pl with different command-line input arguments
You could go the route you described and call your script from another script (bash/batch/perl/whatever) that loops through the different parameters but also passes a unique value for the coverage db (based on the arguments, pid, or whatever).
The invocation of Devel::Cover would be slightly different: perl -MDevel::Cover=-db,cover_db-<unique value> my_file.pl -arg1 <arg1_value> -arg2 <arg2_value>.
When all of the calls to your script are done, you'd simply call the cover script passing a wildcard for the coverage database like cover -report=html cover_db-*
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Devel::Cover for myfile.pl with different command-line input arguments
by tito80 (Novice) on Aug 23, 2016 at 00:06 UTC | |
by Mr. Muskrat (Canon) on Aug 24, 2016 at 14:03 UTC | |
by tito80 (Novice) on Aug 26, 2016 at 23:16 UTC |
In Section
Seekers of Perl Wisdom