Skip to content

Testing and delivery

Test strategies that support the architecture, and delivery practices that keep it changeable.

Entries are sorted by score from 1 to 10 (criteria): 9โ€“10 start here or strongly recommended, 6โ€“8 recommended, 1โ€“5 further reading or conditional.

Adopted references

Key rules

How to enforce

Tools that check the key rules above automatically, in CI, the IDE or a commit hook. "Partly" means the tool covers only some of what the rule asks.

  • 7 ArchUnit (Java): layer, dependency and cycle checks as unit tests. Checks TEST-4.
  • 7 Pact can-i-deploy: blocks a deployment unless contract tests show it's compatible with what's deployed. Checks TEST-5.
  • 6 ArchUnitNET (.NET): namespace dependency, layer and cycle rules as unit tests. Checks TEST-4.
  • 6 Konsist (Kotlin): assertArchitecture verifies that layers depend only on the layers they're allowed to. Checks TEST-4.
  • 6 dependency-cruiser (JavaScript and TypeScript): validates module dependencies against your rules, and fails CI on violations. Checks TEST-4.
  • 6 Import Linter (Python): layers contracts let higher layers depend on lower ones, but not the other way around. Checks TEST-4.

Tutorials and further reading