[perl #46893] [TODO] [Perl] Complete test coverage of Parrot::Test
James Keenan via RT
parrotbug-followup at parrotcode.org
Tue Dec 30 03:00:58 UTC 2008
On Sat Dec 13 07:38:19 2008, jkeen at verizon.net wrote:
> On Thu Nov 27 10:59:57 2008, jkeen at verizon.net wrote:
> > 'testparrottest' branch has been opened in SVN to hold this work.
>
> I have merged the 'testparrottest' branch into trunk. See:
> http://www.parrotvm.org/svn/parrot/revision?rev=33855
>
> This revision does some refactoring in Parrot::Test which permits us to
> increase the extent to which this package is covered by the tests in
> t/perl/Parrot_Test.t. Here are some comparison:
>
> Coverage type Before After
>
> Statement 53.3 79.3
> Branch 31.0 62.9
> Condition 41.5 60.0
> Subroutine 78.9 92.9
>
> When I've performed this kind of coverage-focused refactoring on
> programs like Configure.pl and tools/build/pmc2c.pl, I've usually been
> able to push the statement coverage well into the 90%+ level. That's
> not yet possible for Parrot::Test, because that class defines
> subroutines, or parts of subroutines, which either (a) are only used by
> the languages being built on Parrot, but not Parrot itself; (b) are
> currently underdeveloped (e.g., pirc) or known not to work and marked
> for revamping (native PBC).
>
> Comments?
>
Any other comments or requests re Parrot::Test? Otherwise, I'm going to
deem it tested about as well as it can be given the constraints cited
above and therefore will close the ticket.
Thank you very much.
kid51
More information about the parrot-dev
mailing list