nw-test-organization-conventions

Organize test directories by architecture and type across unit, integration, and e2e tiers.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/StudentCristian/nWave-github --skill nw-test-organization-conventions
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: nw-test-organization-conventions
Source: https://github.com/StudentCristian/nWave-github/tree/main/.github/skills/nw-test-organization-conventions
Command: npx skills add https://github.com/StudentCristian/nWave-github --skill nw-test-organization-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Test directory structure encodes architectural boundaries. If a developer cannot infer the architecture from the test tree alone, the organization is wrong.

Core Features & Use Cases

  • Guides test organization using an architecture-to-organization decision tree across Hexagonal/Clean Architecture, Vertical Slice, Modular Monolith, Microservices, Event-Driven, CQRS, and Layered patterns.
  • Clarifies best practices for where to place unit/integration tests and how to mirror, feature-co-locate, or hybridize test trees to support IDE navigation and boundary contracts.
  • Provides language-agnostic conventions and a quick-start template for adopting a hybrid approach.

Quick Start

Adopt the Hybrid pattern to structure tests by type first, then feature, and organize unit, integration, and e2e tests accordingly.

Frequently Asked Questions about nw-test-organization-conventions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure test directories for a modular monolith or microservices architecture?▼

Structure test directories by mapping architecture boundaries to test tree organization, using a decision tree to determine placement for modular monolith or microservices architectures. This reduces ambiguity by ensuring the test tree mirrors architectural boundaries.

What is the best way to organize unit, integration, and e2e tests in a large project?▼

Adopt a hybrid pattern to organize unit, integration, and e2e tests by type first, then by feature. This provides language-agnostic conventions to support IDE navigation and boundary contracts across large projects.

Why does my test tree structure not reflect my clean architecture boundaries?▼

Your test tree fails to reflect clean architecture boundaries because the organization is wrong if developers cannot infer the architecture from the test tree alone. Test directory structure must encode architectural boundaries to reduce ambiguity.

Does this test organization approach work with vertical slice and event-driven architectures?▼

Yes, this test organization approach works with vertical slice and event-driven architectures. It provides an architecture-to-organization decision tree applicable across Hexagonal/Clean, Vertical Slice, Modular Monolith, Microservices, CQRS, and Layered patterns.

Can I use feature-colocation for integration tests across different architectural patterns?▼

Yes, you can use feature-colocation for integration tests across different architectural patterns. The conventions clarify best practices for where to place tests and how to mirror, feature-colocate, or hybridize test trees to support boundary contracts.

When should I not use a hybrid test tree organization?▼

You should avoid hybrid test tree organization when your project does not require strict boundary enforcement or when the architecture cannot be inferred from the test tree. If the structure does not reduce ambiguity in large projects, alternative organization is needed.