tree-sitter-zig
tree-sitter-zig copied to clipboard
Add corpus tests
tree-sitter grammars usually have corpus tests in a test/corpus folder, for example https://github.com/tree-sitter/tree-sitter-javascript/tree/5720b249490b3c17245ba772f6be4a43edb4e3b7/test/corpus. Those tests can be run by using tree-sitter test. They are useful for detecting existing problems, preventing bugs from future grammar changes and catching software regressions.
Are you going to add them? If not, are you willing to accept to a PR for that?
It'd be good to have the tests on CI once they're implemented. Let me know if you need help with that.
I only use them from my local machine. Add quick header to each file. and a small python script to grab ERROR in those files. Sometime I use, sometime I don't. Write test really time consuming, and I don't know anything about CI. If you want to do it. I'm happy to add