gleb-sevruk / pycrunch-engine

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

doesn't find all tests #75

Closed atjtest closed 8 months ago

atjtest commented 1 year ago

IntelliJ IDEA 2022.2.3 (Ultimate Edition) Build #IU-222.4345.14, built on October 5, 2022

pycrunch-engine==1.4

The tests folder structure is as below: tests/ test_1.py test_2.py util/ test_util1.py test_util2.py

The pycrunch finds the test in tests.util.test_util1.py and tests.util.test_util2.py, but it doesn't find tests in tests.test_1.py and tests.test_2.py. There is no error in the run console. There is no exclusions in .pycrunch-config.yaml.

Anyone has insight why it doesn't find any tests in the root of tests folder?

gleb-sevruk commented 1 year ago

Can you try to add empty __init__.py into the tests folder and see if that helps?

atjtest commented 1 year ago

Can you try to add empty __init__.py into the tests folder and see if that helps?

__init__.py is there in tests folder. when I run pytest, it can find all the tests.

gleb-sevruk commented 1 year ago

Please publish a minimal reproducible example. Maybe there is some nesting involved or async functions?

gleb-sevruk commented 8 months ago

Closing as inactive. Feel free to reopen and publish example.