Skip Menu |

This queue is for tickets about the CPAN-Changes CPAN distribution.

Report information
The Basics
Id: 89009
Status: resolved
Priority: 0/
Queue: CPAN-Changes

People
Owner: Nobody in particular
Requestors: dmuey [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: feature: test that there is an entry for the main module’s current version
Neat module, thanks! One thing that'd e a great sanity check is for it to test that there is an entry for the main module’s current version. e.g.: 1. update a module from 1.2 to 1.3 2. forget to add a Changes entry for 1.3 (or typo it, etc) 3. test should fail (e.g. current version has no Changes entry (got 1.2 expected 1.3))
It is already possible to use the changes_file_ok() sub to check this. It should just be a matter of using: use Test::More; use Main::Module; use Test::CPAN::Changes; changes_file_ok(undef, { version => Main::Module->VERSION }); done_testing; There's no obvious way to figure out the 'main module' automatically, so I'd prefer to leave it as manual.