Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by domm (4030) on 2004.07.21 16:09 (#32753) Homepage Journal
    I'm currently working on CPANTS (finally found/took some time..). CPANTS does pod testing. And a lot of other things.

    I'll do a talk on it at YAPC::Europe in Belfast, and if you (and others) are interested, we could do a BOF.

    For a short preview, CPANTS currently creates YAML-files for each dist containing various information. Additionally, it creates a SQLite DB for easy querying of stuff.

    Here's the yaml-file for Acme::Bleach (which contains 3 pod errors):

    --- #YAML:1.0
    dist: Acme-Bleach-1.12
    distribution:
        dist_without_version: Acme-Bleach
        extension: tar.gz
        extractable: 1
        extracts_nicely: 1
        package: Acme-Bleach-1.12.tar.gz
        version: 1.12
        version_major: 1
        version_minor: 12
    files:
        build_pl: 0
        count_bad_permissions: 0
        count_dirs: 4
        count_files: 19
        count_symlinks: 0
        list_bad_permissions: ''
        list_dirs: demo,lib,lib/Acme,t
        list_files: ! >-
          Changes,MANIFEST,Makefile.PL,README,demo/demo_DWIM.pl,demo/demo_bleach.pl,demo/d emo_bleach_c.pl,demo/demo_bleach_eng.pl,demo/demo_bleach_lisp.pl,demo/demo_bleac h_sh.pl,demo/demo_empty.pl,demo/demo_morse.pl,demo/empty,lib/Acme/Bleach.pm,lib/ Acme/DWIM.pm,lib/Acme/Morse.pm,t/DWIM.t,t/bleach.t,t/morse.t
        list_symlinks: ''
        makefile_pl: 1
        manifest: 1
        meta_yml: 0
        ninja: 0
        readme: 1
        signature: 0
    kwalitee:
        extracts_nicely: 1
        has_buildtool: 1
        has_manifest: 1
        has_meta_yml: 0
        has_readme: 1
        has_version: 1
        kwalitee: 7
        no_pod_errors: 0
        no_symlinks: 1
        permissions_ok: 1
    pod:
        errors: 3
    release:
        date: Tue May 22 02:17:11 2001
        epoch: 990490631
    size:
        packed: 4299
        unpacked: 11479

    • Looks like you gone a lot further than I was thinking, great stuff. I will be very interested to hear your talk, assuming I'm not schedule to talk at the same time, so will be along if I can.

      However, are you also a producing a report of the errors you've found. In some cases rerunning the tests on a.n.other box may not spot the problems, so it's handy to have a detailed list of what you tested with (Test:: module versions too) as well as the errors.

      • I'm planning to include various pieces of metadata in the results like the version of CPANTS used to generate data.

        But including versions of important modules used (and perl version, BTW) is a good idea. Thanks!

        BTW. I ran CPANTS today, you can view the results here (this is a very temporary URI..):
        http://test1.dev.zsi.at/ [dev.zsi.at]
        (very raw results, that is: yaml-files in directory metrics, and a sqlite DB. no docs currently, sorry)