You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We tried to plug tree-sitter-tests-formatter in our repository, to format tree-sitter-darklang/test/corpus test files, but decided against it due to the 1.5 GB ( for Rust) it would add to the Dockerfile
We want to write a formatter for our Tree-sitter grammar tests in Darklang
Notes:
Handle nested directories : not all test files are in tree-sitter-darklang/test/corpus; some are in nested directories, e.g.tree-sitter-darklang/test/corpus/exhaustive/exprs
maintain a consistent number of # symbols at the beginning of each test header
trim test names
keep the test case as is (no trimming no formatting)
have a triple hyphen (---) separator between the test case and the generated tree
spacing rules: two newlines after each test block, one after each title, test case, and after the triple hyphen separator
format the S-expression based on the following example
We tried to plug tree-sitter-tests-formatter in our repository, to format
tree-sitter-darklang/test/corpus
test files, but decided against it due to the 1.5 GB ( for Rust) it would add to the DockerfileWe want to write a formatter for our Tree-sitter grammar tests in Darklang
Notes:
tree-sitter-darklang/test/corpus
; some are in nested directories, e.g.tree-sitter-darklang/test/corpus/exhaustive/exprs
Example of a formatted test:
Misc:
The text was updated successfully, but these errors were encountered: