Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create unit tests for tree-sitter #34

Merged
merged 2 commits into from
Nov 30, 2024
Merged

Conversation

FourierTransformer
Copy link
Collaborator

Added some unit tests for tree-sitter. Helps with #27 (still need tests around the symbol extractor to close it out fully)

Unfortunately they don't run in GHA due to the tree-sitter library and headers not being installed. As part of #26, I'm planning on switching over the tree sitter library to one that includes the library, so this external dependency is removed, and these tests will ensure that functionality that is needed remains the same.

@FourierTransformer
Copy link
Collaborator Author

The, "it works on my machine" output:

luarocks test

teal-language-server 0.0.5-1 depends on luafilesystem (1.8.0-1 installed: success)
teal-language-server 0.0.5-1 depends on tl (0.24.1-1 installed: success)
teal-language-server 0.0.5-1 depends on lua-cjson (2.1.0.10-1 installed: success)
teal-language-server 0.0.5-1 depends on argparse (0.7.1-1 installed: success)
teal-language-server 0.0.5-1 depends on inspect (3.1.3-0 installed: success)
teal-language-server 0.0.5-1 depends on luv (1.48.0-2 installed: success)
teal-language-server 0.0.5-1 depends on lusc_luv >= 4.0 (4.0.1-1 installed: success)
teal-language-server 0.0.5-1 depends on ltreesitter (0.0.7-1 installed: success)
teal-language-server 0.0.5-1 depends on tree-sitter-cli (0.24.4-1 installed: success)
teal-language-server 0.0.5-1 depends on tree-sitter-teal (0.0.32-1 installed: success)

teal-language-server 0.0.5-1 depends on busted ~> 2 (2.2.0-1 installed: success)
●●●●●●●●●●●●●●●●●●
18 successes / 0 failures / 0 errors / 0 pending : 0.038159 seconds

@FourierTransformer FourierTransformer merged commit 85d6a63 into main Nov 30, 2024
0 of 8 checks passed
@FourierTransformer FourierTransformer deleted the sitter-unit-tests branch November 30, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant