miyagawa/cpanminus — pull request #285 by garu (2013-07-16 06:50:58+00:00)
Title: CPAN Testers integration (via App::cpanminus::reporter)

Hi there!

This patch provides proper CPAN Testers integration. It's a very simple patch that basically delegates all the reporting to App::cpanminus::reporter from within cpanm. This allows both log parsing and reporting to be properly handled by the CPAN::Testers::Common::Client interface while keeping the changes to cpanm itself at a minimum.

By doing it this way, we are able to handle reporter setup automatically (it should fire up a shell prompting the user to set things up if it can't find the standard ".cpanreporter" data, conform to server API via the common client and handle any supported transport mechanisms (defaults, of course, to Metabase).

As such, if a user wants to add CPAN Testers reporting to cpanm all they have to do is install App::cpanminus::reporter. The "cpanm-reporter" binary becomes obsolete for general reporting, used only if the user wishes greater control over the reporting (e.g. for debugging)

This patch builds on the work of @tobyink, also providing the "--skip-report" flag for people wishing to opt-out. Feel free to change this to opt-in or whatever - like I said, the patch makes it pretty straightforward :)

Hope this helps! Oh, and thanks again for cpanm. Did I mention it's awesome? It's awesome :D