-
Notifications
You must be signed in to change notification settings - Fork 1
Dying if Test::Version is not installed breaks automated testing #6
Comments
disagree this leads to CI not appropriately running the test. Tests that can be accidentally not run aren't very usefull. I once introduced a bug because of the behavior you're asking for. However, it should probably add develop requires to the package, which it probably doesn't do. patches welcome. |
also do not run author tests (or version tests) without pulling in authordeps in ci |
it's worth noting that this plugin pulls in test version, so if you're running |
I see your point of view, though I don't fully agree with it. However, it's not my module. :] I'm using travis-helper's perl help scripts with so I'm not sure why it didn't pull it in. I added Test::Version = 0 to my [Prereqs / TestRequires] section of dist.ini and it worked fine in all versions of perl from 5.10 to 5.20 on travis-ci. If adding [Prereqs / DevelopRequires] to the dist.ini for this dist, I can certainly do that and submit a pull request. But I don't understand how that would make it work. |
can you link me to your here's one of mine https://github.com/xenoterracide/Business-CyberSource/blob/master/.travis.yml also Don't use |
To prove my point about skipping the test, IIRC the PodCoverageTests is one such test that will skip if not installed, so I force it to install, so that I don't accidentally release with brokenness https://travis-ci.org/xenoterracide/Dist-Zilla-Plugin-Test-Version/jobs/41667983 |
Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>
0.003000 should fix your problem, though I'd still suggest not using ExtraTests and using RunExtraTests instead, and ensuring that your travis.yml is actually configured to pull in deps properly. |
If you're still interested: https://github.com/harleypig/Dist-Zilla-Plugin-Test-Legal/blob/release_testing/master/.travis.yml I will experiment with RunExtraTests instead of ExtraTests ... I've been concerned about how the module will test in the wild, especilly CPANTesters. Thanks for your time. |
you're running author and release tests without ensuring that deps (author deps/develop requires ) for those are installed, cpantesters will not (if they do their testing is flawed, and should be ignored) AUTHOR_TESTING or RELEASE_TESTING. also IIRC setting it in |
If Test::Version is not installed for some reason during a clean setup (e.g., travis-ci testing) dying breaks the entire build.
It would be better to skip_all instead of dying. This would allow the developer to ignore or fix as needed.
The text was updated successfully, but these errors were encountered: