Filter test files/classes from diagram output #11

Closed
opened 2026-06-17 06:40:41 +00:00 by GKaszewski · 0 comments
Owner

What to build

Exclude test files and test classes from generated diagrams by default. Test code adds noise without architectural signal.

Filter by convention:

  • Python: files matching test_*.py, *_test.py, directories named tests/
  • Rust: files matching *_tests.rs, tests/ directories, #[cfg(test)] blocks
  • C#: files/classes with Test suffix by convention

Add an --include-tests flag to opt back in when needed.

Acceptance criteria

  • Test files excluded from analysis by default
  • Test classes not emitted in any diagram level
  • --include-tests flag re-enables them
  • Config option include_tests = true in archlens.toml
  • Tests verify exclusion behavior for both Python and Rust
  • Existing tests still pass

Blocked by

None - can start immediately

## What to build Exclude test files and test classes from generated diagrams by default. Test code adds noise without architectural signal. Filter by convention: - Python: files matching `test_*.py`, `*_test.py`, directories named `tests/` - Rust: files matching `*_tests.rs`, `tests/` directories, `#[cfg(test)]` blocks - C#: files/classes with `Test` suffix by convention Add an `--include-tests` flag to opt back in when needed. ## Acceptance criteria - [ ] Test files excluded from analysis by default - [ ] Test classes not emitted in any diagram level - [ ] `--include-tests` flag re-enables them - [ ] Config option `include_tests = true` in `archlens.toml` - [ ] Tests verify exclusion behavior for both Python and Rust - [ ] Existing tests still pass ## Blocked by None - can start immediately
GKaszewski added the P1 label 2026-06-17 06:46:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GKaszewski/archlens#11