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

Customisable patterns for DWIM #79

Open
OldhamMade opened this issue Dec 6, 2024 · 1 comment
Open

Customisable patterns for DWIM #79

OldhamMade opened this issue Dec 6, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@OldhamMade
Copy link

In the projects I work on, test files are suffixed with _spec.py instead of _test.py as we follow more of a BDD format. Test names don't start with test_ but instead start with one of: ensure_, it_, must_, should_

It would be great if there was a way to append _spec.py to the list of files checked so we can customise the behaviour a little more.

@wbolster
Copy link
Owner

wbolster commented Dec 20, 2024

heh, this was one of my concerns in #55 (comment) (and #73).

i use projectile.el and its projectile-test-file-p helper for the autodiscovery, and it seems you're using the non-projectile code path.

anyway, i'll merge a pull request to improve this!

@wbolster wbolster added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants