-
Notifications
You must be signed in to change notification settings - Fork 26
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
Projectile test file filtering #38
Comments
hmmm, never experienced this myself, but i see how this can be confusing. would it be enough to silently fallback to listing all project files in case |
That's probably adequate, though wouldn't help the user find the actual problem. |
🤔 showing an error and pointing to a (currently nonexisting) config flag isn't really helping either, i think? and a global config flag is also not really helping, since it affects all projects, not just the one that doesn't have a working not sure if it's possible to show a warning somehow. messages would usually appear at the bottom of the screen, but the whole interaction here involves reading from the minibuffers, which also puts stuff at the bottom of the screen... 😐 |
It's indeed probably best to keep it simple -- I'd probably just add a sentence to the documentation. e.g. where it says "note that python-pytest.el uses projectile for some of its features, e.g. finding associated test files. this package is intended to work correctly even without any projectile configuration, since it will likely do the right thing if a project has a conventional layout." Could be e.g. "note that python-pytest.el uses projectile for some features, e.g. locating test files according to |
i've changed the behaviour of |
The documentation surrounding the use of projectile to filter test files could be improved. My test directory wasn't recognized by projectile and therefore the
projectile-test-files
function used inpython-pytest--select-test-files
was filtering out everything and I just got "No test files found" messages without further explanation.Possibly have a configuration variable that allows turning off the
projectile-test-files
filtering, or just add a blurb about ensuring projectile'stest-dir
is properly set in the docs or the error message.The text was updated successfully, but these errors were encountered: