Skip to content
Purview Dev logo

Architests

Stable Architests Reviewed 2026-10-16 purview-dev/architests Star on GitHub architecture architecture-tests csharp dependency-rules dotnet nuget roslyn static-analysis tunit llms.txt

Enforce a repository’s architecture policy as TUnit tests, so the rules are defined once rather than copied into every repository’s test project.

Adoption is a policy file at .config/architecture-policy.json and one derived test class:

[InheritsTests]
public sealed class ArchitectureTests : PurviewArchitectureTests;

Get started

  • Getting started — adopt the package in a repository, step by step.
  • Policy reference — every field, every rule id, every default.
  • Type-level rules — how the assembly check works and how an assembly is attributed to a project.
  • Extending — add your own rule to the standard set.
Terminal window
npx skills add purview-dev/architests