Skip to content
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

all_vars_ok should find files dynamically #5

Open
doherty opened this issue Nov 30, 2013 · 2 comments
Open

all_vars_ok should find files dynamically #5

doherty opened this issue Nov 30, 2013 · 2 comments

Comments

@doherty
Copy link

doherty commented Nov 30, 2013

In doherty/Dist-Zilla-Plugin-Test-UnusedVars#5, @karenetheridge pointed out that using the static MANIFEST means that all_vars_ok doesn't test all the files. In particular, it misses any which were generated at build time. They aren't listed in the MANIFEST, because MANIFEST is about listing the files that should be included in the tarball. If you listed a file that wasn't there yet, the build tools would think their kit was incomplete.

MANIFEST isn't intended for this purpose. Instead, you should dynamically search for the files you're going to test.

Compare with how Test::Compile or Test::Version do it.

@gfx
Copy link
Member

gfx commented Dec 13, 2013

The idea sounds good, but I have some requests:

  • Do not enable this feature by default
  • Do not depend on File::Find::Rule

@doherty
Copy link
Author

doherty commented Dec 13, 2013

Could you explain why on both counts? It seems like doing the unsurprising thing by default is a better choice. Also, I'm not sure I see the harm in the additional (common) dependencies for an author test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants