Skip Menu |

This queue is for tickets about the Test-CheckChanges CPAN distribution.

Report information
The Basics
Id: 63914
Status: new
Priority: 0/
Queue: Test-CheckChanges

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

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



Subject: END block wreaks havoc
Hello, Thanks for writing this module, I still use it :) However, since I'm switching to Dist::Zilla and a strange thing started happening when I'm building my dists. It kept printing "1..1" and "# No tests run!". I tracked it down to the END block in this module. I was doing version introspection and simply did "require Test::CheckChanges; print Test::CheckChanges->VERSION" and wondered why it kept executing the test stuff. Looking at your code, I think it's ok to remove the END block, and just specify done_testing in the ok_changes sub. That way it will play nicely with other test modules that are loaded and not cause spurious errors. I'm not sure of the reasoning behind creating the END block, so you might have more answers for me :) Thanks again for taking the time to figure this out, I appreciate it! -- ~Apocalypse