gleb-sevruk / pycrunch-engine

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

Ast test discovery #57

Closed gleb-sevruk closed 2 years ago

gleb-sevruk commented 2 years ago

This is a complete replacement for SimpleTestDiscovery.

Now tests will be searched inside AST-representation of test files. Test files are files that are starting or ending with test_ or tests_.

Preliminary testing shows full compatibility between previous protocols

One caveat, I cannot find classes, deeply inherited from TestCase, and for that optional deep-inheritance parameter is introduced. Do not use it, better to call class Test{...} or {...}Test; This way it will be discovered;

engine:
    deep-inheritance: true