gleb-sevruk / pycrunch-engine

NCrunch inspired tool for continuous testing Python
https://pycrunch.com
Other
57 stars 8 forks source link

Support alternate language in test discovery #73

Open GamalielMasters opened 2 years ago

GamalielMasters commented 2 years ago

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 commented 1 year ago

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