- Toby Inkster
- CPAN; Testing
OK, so I decided to hack in support for submitting CPAN testers reports into cpanminus. I've uploaded the result to CPAN in case anybody else wants to use it. After CPANPLUS and cpanminus, the logical name for it was cpantimes.
Here's how to use it...
- Install cpantimes using your current CPAN client. You will also want Test::Reporter and Test::Reporter::Transport::Metabase.
$ cpanm App::cpantimes Test::Reporter Test::Reporter::Transport::Metabase
- Set up a Metabase profile. You will need this in order for your reports to be accepted by CPAN testers.
$ mkdir $HOME/.cpantesters
$ mv metabase_id.json $HOME/.cpantesters
$ chmod 400 $HOME/.cpantesters/metabase_id.json
- Now just use cpant whenever you'd normally use cpanm. Test reports will be silently submitted every time you install a distribution. You can even set up a shell alias so that when you type cpanm you get cpantimes.
cpantimes is still at a very early stage of development. I literally started it yesterday evening. But have a play and let me know if you discover any bugs.