Building and testing

Updated Jul 01, 2026

Use the Makefile targets to work with the entire workspace:

  • make build compiles every crate in debug mode.
  • make test runs all unit tests and the behaviour tests powered by rstest-bdd.
  • make check-fmt, make lint, and make fmt mirror the repository quality gates described in AGENTS.md.
  • make json-schema regenerates the published TeiDocument JSON Schema snapshots under schemas/.
  • make validate-xml generates XML fixtures and validates them against the TEI Episodic Profile Relax NG schema using jing. This requires jing to be installed (see "External XML validation" below).