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
:TestFiles returns all files under the t/ directory, not only *.t files run by prove #407
Comments
See
Should probably rather be
|
prove
We actually do want :TestFiles to return all t/ files - e.g. AutoPrereqs uses this to find all test prereqs. To mark a file as binary/unscannable by plugins, set its encoding to 'bytes' in dist.ini -- see the docs for Dist::Zilla::Plugin::Encoding. |
Ah, thanks. What about TSV files or shell scripts with Moreover, Net::HTTP::Spore already mentions the file:
But the test still fails:
|
It all depends on what you want to achieve. Some things may still want to look at files in t/ that aren't perl code.
Then you're in the wrong issue queue. But never fear, the maintainer has just uploaded a fix: https://metacpan.org/release/Dist-Zilla-Plugin-Test-NoTabs |
Thanks :-) |
@choroba For the specific case of Net::HTTP::Spore, another solution would be to use a custom finder. You could try something like that in the dist.ini:
|
This leads e.g. to a release test error for Net::HTTP::Spore which contains
t/specs/content.tgz
- but it makes no sense to test a binary file for tabs.The text was updated successfully, but these errors were encountered: