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

Support alternate language in test discovery #73

Open
GamalielMasters opened this issue Jul 21, 2022 · 1 comment
Open

Support alternate language in test discovery #73

GamalielMasters opened this issue Jul 21, 2022 · 1 comment

Comments

@GamalielMasters
Copy link

Pytest discovery allows for configuring the language used to determine what is and is not a test by customizing the file, class and function / method names search using glob patterns. It would be awesome if PyCrunch were to allow similar configuration (and even more awesome if it picked up pytest's configuration automatically when using pytest as the engine).

I prefer to use alternate terminology in my tests, but right now have I to choose between my preferred terms, utilizing PyCrunch.

@gleb-sevruk
Copy link
Owner

This sounds like a reasonable and not-so-hard feature to implement.

  1. Parse pytest.ini configuration
  2. Apply configuration in file pycrunch/discovery/ast_discovery.py for methods looks_like_test_name and looks_like_test_class

Unfortunately, I do not have a lot of time to work on that due to the situation in my country. But I'm willing to accept PR

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

No branches or pull requests

2 participants