develooper Front page | perl.qa | Postings from January 2008

Test::Builder statistics

Thread Next
From:
Ovid
Date:
January 12, 2008 03:33
Subject:
Test::Builder statistics
Message ID:
880775.15741.qm@web60822.mail.yahoo.com
My first attempt at determining the most popular testing modules left
out Test.pm.  Whoops!  I've fixed that.

Out of almost 60,000 test programs, it turns out Test.pm is used 8,937
times.  Now that I have a file which lists how many times each test
module is used, I can start examining my extracted CPAN to determine
what percentage of modules actually use the Test::Builder framework.

This is done via heuristics, so the numbers are likely to be slightly
off, but I've done enough work with test suites (including a lot of
work on CPAN test suites I haven't written), that I don't think these
numbers are *too* far off.

  Uses            Count  Percent
  ------------------------------
  Test::Builder   47934   81.30%
  Non-builder      1107    1.88%
  Unknown           642    1.09%
  Test.pm          8937   15.16%

(Unknown represents modules I couldn't find the paths to).

So basically, if you put in a special case for Test.pm, you will likely
be able to write special test code for almost 97% of CPAN modules.

Cheers,
Ovid

--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About