tree-sitter / parser-test-action

Test action for tree-sitter parsers
MIT License
2 stars 2 forks source link

python tests are broken since the update of the v2 tag #3

Closed glehmann closed 5 months ago

glehmann commented 5 months ago

My python tests are broken since the update of the v2 apparently. The tests broke without any changes on my side — see the scheduled ci workflows in https://github.com/glehmann/tree-sitter-earthfile/actions

I’ve tried moving my test to bindings/python/tests, because this directory appear in the last commit in the current v2 tag and this dir is the error messages ImportError: Start directory is not importable: 'bindings/python/tests' but then the tests are failing because no test can be found.

Is there something else I should do?

ObserverOfTime commented 5 months ago

The test files must be named test_*.py for test discovery to find them. And you need to move them to bindings/python/tests to avoid import errors.

glehmann commented 5 months ago

ok, nice to have moved to the standard convention 👍 that plus removing the name parameter when creating the Language and my tests are green again :-)

language