tree-sitter-zig icon indicating copy to clipboard operation
tree-sitter-zig copied to clipboard

Add corpus tests

Open resolritter opened this issue 2 years ago • 2 comments

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?

resolritter avatar Apr 07 '23 06:04 resolritter

It'd be good to have the tests on CI once they're implemented. Let me know if you need help with that.

resolritter avatar Apr 07 '23 06:04 resolritter

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

maxxnino avatar Apr 07 '23 08:04 maxxnino