| Crates.io | arborium-test-harness |
| lib.rs | arborium-test-harness |
| version | 2.12.4 |
| created_at | 2025-12-04 22:31:15.756556+00 |
| updated_at | 2026-01-18 11:08:49.58295+00 |
| description | Test harness for arborium grammar crates |
| homepage | https://github.com/bearcove/arborium |
| repository | https://github.com/bearcove/arborium |
| max_upload_size | |
| id | 1967237 |
| size | 25,186 |
Test harness for arborium grammar crates.
Provides utilities for testing tree-sitter grammars and their highlight/injection queries.
In your grammar crate's tests:
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_grammar() {
arborium_test_harness::test_grammar(
language(),
"rust",
HIGHLIGHTS_QUERY,
INJECTIONS_QUERY,
LOCALS_QUERY,
);
}
}
The harness validates that:
Part of the arborium project. See arborium.dev for more information.