Skip to content

test: Multi-language fixture harness#531

Merged
zharinov merged 1 commit into
masterfrom
gv/05-multi-language
Jun 28, 2026
Merged

test: Multi-language fixture harness#531
zharinov merged 1 commit into
masterfrom
gv/05-multi-language

Conversation

@zharinov

@zharinov zharinov commented Jun 27, 2026

Copy link
Copy Markdown
Member

Summary

  • The fixture suite read one JavaScript grammar path baked in by build.rs. Now it loads any arborium-* grammar at runtime via cargo metadata.
  • Deleted build.rs and its build-dependency.
  • Added arborium-dart and arborium-typescript as dev-dependencies.
  • Fixtures pick their language from the section header: ==== input.ts ====, ==== input.dart ====.
  • Seven cross-language fixtures cover typescript and dart.
  • CLI tests now dump every enabled language, so a broken grammar wiring cannot slip through.

Why

The checker should work for any tree-sitter grammar, not just JavaScript. The suite needs to prove that.

The snapshots harness read the JavaScript grammar from a path baked in by
build.rs. Point it at the runtime arborium loader instead, delete build.rs
and its build-dependency, and add arborium-dart and arborium-typescript as
dev-dependencies. Fixtures pick their input language from the section header
(`==== input.ts ====`, `==== input.dart ====`); seven cross-language
fixtures exercise typescript and dart. CLI registry tests now dump every
enabled language so a newly wired grammar cannot regress silently.
@zharinov
zharinov force-pushed the gv/05-multi-language branch from 7788238 to 5bd84be Compare June 28, 2026 22:19
@zharinov
zharinov merged commit 60c7758 into master Jun 28, 2026
4 checks passed
@zharinov
zharinov deleted the gv/05-multi-language branch June 28, 2026 22:22
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