Subject: | Don't use FindBin |
Currently Test::EOL checks for files one directory up from the file that
runs it. Which is fine if it exists in t/ or xt/. It is not fine when it
is in the file xt/release/eol.t which happens if you use the Dist::Zilla
plugin EOLTests without using the plugin ExtraTests.
The easiest way to fix this is to just use the current working
directory.
Generally when you run test files, you do so from the base directory.
At most I would check to see if the CWD is the same as $FindBin::Bin,
and in that case go up one directory.
---
I was going to have a Git pre-commit hook that ran dzil xtests, which
requires not using the plugin ExtraTests.