#tree-sitter #formatter #testing

bin+lib tree-sitter-tests-formatter

tree-sitter tests file formatter

1 unstable release

0.1.0 Dec 9, 2023

#2616 in Development tools

MIT license

13KB
255 lines

Tree-Sitter Tests Formatter

A formatter for Tree-Sitter test files

Crates.io Crates.io Github release status Code coverage GitHub

Examples

CLI

tsfmt --path /Users/charles/Developer/tree-sitter-sourcepawn/test/corpus

Code usage

use tree_sitter_tests_formatter::format_files;

fn main() {
    let path = PathBuf::from("tests/corpus");
    format_tests_dir(&path);
}

Dependencies

~5–15MB
~198K SLoC