-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
specific dependency phases for "extra" test grades. #108
Comments
The details of getting this right aren't trivial at all. Too bad you're not going to be un Rugby :-/ |
This is definitely something I'd like to have in some form, even if just as a custom field. Currently many Dist::Zilla plugins add themselves to develop requires. In some sense this is correct, but it also doesn't pertain to anything that's actually part of the dist. Having a way to pull in the prereqs needed for xt tests that ship with the dist without including the prereqs needed to generate the dist is very useful. I'm currently using a 'x_test' prereq phase for this. I haven't found the granularity of separate xt subdirectories particularly useful. |
To an extent I agree, there will surely be some userbase ( and indeed, testing targets ) which may want a "Run them all" phase, and thus, a merged view of all those dependencies is logical for that. But there's likely going to be user targets other than that, for instance: I can totally understand why a CPAN smoker might want to run only xt/smoke/ in addition to t/, but not run xt/author or xt/release And for contributor workflows, "Smoke" might pull in things like reverse-dependencies for regression testing, and so you don't want to be telling them "Hey, just to run author tests, you need to install these parts of CPAN you're not going to care about" The point is breaking down the effort required into teirs, so people can invest as much as they want ( that is, all tests, all dependencies ) or as little as they want ( just the code, just the code and the author tests, ... etc ) |
I'd like to see better arbitrary phase support in "installdeps" targets. E.g.
If that existed, then I think it's a matter of someone writing tooling to put deps at whatever granularity into META. |
In practice that also means you want custom phase support in => x_test => Seems useful if you're doing hand edited small dists, but not practical for something like DZil. |
Oh, and I suspect there'll need to be some effort somewhere to support |
I thought I'd filed a bug on this somewhere / talked about it enough for people to see it, but I can't figure where I wrote it last and it might have never happened. So.
The short of it is, I feel a growing need to be able to, in metadata, declare dependencies slightly more effectively than a giant nebulous "development requires".
author_testing.requires
release_testing.requires
extended_testing.requires
( or smoke? )Then, when these stages are formalised and properly integrated into various tools, we can toolchain up equivalent of this mess, but without requiring lots of dzil glue
Because "Hey, lets make automated testing install dzil just to run authortests on automated testing boxes".
Advantages to running release/author tests on AT Boxes:
The text was updated successfully, but these errors were encountered: