mix caravela.check (Caravela v0.10.0)

Copy Markdown View Source

One-stop validation for a Caravela-using project.

Runs, in order:

  1. mix compile — everything must compile.
  2. Discover every module that uses Caravela.Domain.
  3. For each domain, render every applicable generator in memory (no files written) and confirm it doesn't raise.
  4. Optionally run mix test (--tests) and/or mix dialyzer (--dialyzer).

Exits 0 on green, non-zero with a per-domain / per-generator summary otherwise. Intended as the single oracle for LLM iteration loops and CI — one command, one signal.

Flags

  • --tests — also run mix test.
  • --dialyzer — also run mix dialyzer (requires :dialyxir).
  • --only DOMAIN — check a single domain module instead of all.
  • --quiet — suppress per-step output, print final summary only.