Small update: ArchTest 0.3.x is ready.
Main things added in 0.3.x:
use ArchTest, app: :my_appfor app-scoped architecture tests- empty rule subjects now fail by default, so typoed patterns dont silently pass
freeze: truefor easier gradual adoptionArchTest.Collector.calls/2for function-level call metadataArchTest.Rulefor reusable rules with ignore/freeze supportdefine_slices_by/2for auto-discovering modulith slicesArchTest.PlantUML.enforce/2to check component diagrams against real dependencies- extra metrics like
afferent/2,efferent/2,fan_in/2,fan_out/2,dependency_depth/2 - better Igniter generators with app scoping and safer defaults
0.3.1 also includes executable examples against a real compiled fixture app, including PlantUML, call metadata, reusable rules, captured slices, and metrics. I added
this becuase docs are nice, but seeing it run against real BEAM files is alot clearer.
Upgrade:
{:arch_test, "~> 0.3", only: :test, runtime: false}
Migration guide from 0.2:
https://hexdocs.pm/arch_test/migrating-to-0.3.html
Docs:
ArchTest v0.3.1 — Documentation
Hex:
arch_test | Hex
Thanks again for the feedback here, it helped shape this release quite a bit.






















