Skip to content

Conversation

@Colk-tech
Copy link
Member

No description provided.

@Colk-tech Colk-tech self-assigned this Jan 4, 2026
Copilot AI review requested due to automatic review settings January 4, 2026 07:15
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c3b9700) to head (f3f5447).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #33   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           47        47           
  Lines          552       552           
=========================================
  Hits           552       552           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Colk-tech Colk-tech merged commit 7b4225c into main Jan 4, 2026
2 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the test structure by migrating test files from a separate test/ directory to a colocated structure within src/. Tests are now placed alongside their corresponding source files following the pattern test_*.py.

Key changes:

  • Moved all test files to src/ directory, colocated with source code
  • Updated pytest configuration to discover tests in src/ directory with test_*.py pattern
  • Updated coverage configuration to omit test files and conftest.py
  • Updated documentation in CLAUDE.md to reflect new colocated testing structure

Reviewed changes

Copilot reviewed 2 out of 46 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/init.py Removed old test directory structure
test/common/init.py Removed old test directory structure
test/common/di/init.py Removed old test directory structure
test/system/init.py Removed old test directory structure
test/system/di/init.py Removed old test directory structure
test/system/di/module/init.py Removed old test directory structure
test/system/di/module/infrastructure/init.py Removed old test directory structure
test/system/di/module/infrastructure/repository/init.py Removed old test directory structure
test/system/di/module/infrastructure/repository/sqlalchemy/init.py Removed old test directory structure
test/system/domain/init.py Removed old test directory structure
test/system/domain/interface/init.py Removed old test directory structure
test/system/domain/interface/repository/init.py Removed old test directory structure
test/system/domain/interface/repository/common/init.py Removed old test directory structure
test/system/infrastructure/init.py Removed old test directory structure
test/system/infrastructure/ext/init.py Removed old test directory structure
test/system/infrastructure/ext/logfire/init.py Removed old test directory structure
test/system/infrastructure/ext/sentry/init.py Removed old test directory structure
test/system/infrastructure/repository/init.py Removed old test directory structure
test/system/infrastructure/repository/sqlalchemy/init.py Removed old test directory structure
test/system/infrastructure/repository/sqlalchemy/crud/init.py Removed old test directory structure
test/system/infrastructure/repository/sqlalchemy/translator/init.py Removed old test directory structure
test/system/infrastructure/repository/sqlalchemy/type/init.py Removed old test directory structure
test/system/ui/init.py Removed old test directory structure
test/system/ui/discord/init.py Removed old test directory structure
test/system/usecase/base/init.py Removed old test directory structure
test/system/util/init.py Removed old test directory structure
src/system/usecase/base/test_interface.py Test for usecase interface abstraction
src/system/usecase/base/test_dto.py Tests for usecase DTO classes
src/system/ui/discord/test_config.py Test for Discord configuration interface
src/system/infrastructure/repository/sqlalchemy/type/test_ulid.py Tests for ULID column type converter
src/system/infrastructure/repository/sqlalchemy/translator/test_user.py Tests for User domain/DB translator
src/system/infrastructure/repository/sqlalchemy/translator/test_nickname.py Tests for NicknameChangelog domain/DB translator
src/system/infrastructure/repository/sqlalchemy/translator/test_messenger.py Tests for Messenger domain/DB translator
src/system/infrastructure/repository/sqlalchemy/translator/test_base.py Test for base translator abstraction
src/system/infrastructure/repository/sqlalchemy/test_config.py Test for SQLAlchemy configuration interface
src/system/infrastructure/repository/sqlalchemy/crud/test_user.py Tests for User repository CRUD operations
src/system/infrastructure/repository/sqlalchemy/crud/test_nickname.py Tests for NicknameChangelog repository operations
src/system/infrastructure/repository/sqlalchemy/crud/test_messenger.py Tests for Messenger repository operations
src/system/domain/test_config.py Tests for domain configuration and environment enum
src/system/domain/interface/repository/common/test_response.py Tests for repository response data structures
src/system/di/test_container.py Test for dependency injection container
src/system/di/module/infrastructure/repository/sqlalchemy/test_module.py Tests for SQLAlchemy repository DI module
src/conftest.py Shared pytest fixtures for ULID and dialect
src/common/di/test_builder.py Tests for DI builder utilities
pyproject.toml Updated pytest and coverage config for colocated tests
CLAUDE.md Updated documentation to reflect colocated test structure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants