API Reference ArchTest v#0.3.1

Copy Markdown View Source

Modules

ArchUnit-inspired architecture testing library for Elixir.

Core assertion functions for architecture rules.

Function-level call metadata extracted from compiled BEAM files.

Builds a module dependency graph using OTP's :xref tool.

Pre-built assertion helpers for common Elixir coding conventions.

Violation baseline ("freeze") support for gradual architectural adoption.

Layered architecture enforcement.

Coupling and instability metrics for architecture analysis.

Represents a lazy selection of modules for use in architecture rules.

Modulith / bounded context isolation enforcement.

Glob pattern matching for Elixir module names.

Minimal PlantUML component conformance checks.

Represents an architecture rule — a description and a check function that evaluates against the dependency graph and returns a list of violations.

Represents a single architecture rule violation.

Mix Tasks

Generates a code conventions architecture test file.

Generates a freeze baseline architecture test file.

Generates a classic layered architecture test file.

Generates a modulith architecture test file.

Generates a naming convention architecture test file.

Generates an onion / hexagonal architecture test file.

Generates an opinionated Phoenix architecture test file.

Generates a basic architecture test file with a cycle-freedom check.