Skip to content

Add comprehensive tests, benchmarks, and improve documentation and infrastructure - #8

Merged
RD2W merged 26 commits into
devfrom
feature/testing-study
Nov 25, 2025
Merged

Add comprehensive tests, benchmarks, and improve documentation and infrastructure#8
RD2W merged 26 commits into
devfrom
feature/testing-study

Conversation

@RD2W

@RD2W RD2W commented Nov 21, 2025

Copy link
Copy Markdown
Owner

This PR introduces significant improvements to the project by adding comprehensive tests across multiple layers, performance benchmarks, and infrastructure enhancements:

  • Added extensive test coverage for HTTP and gRPC delivery layers
  • Implemented performance benchmarks for repository and service layers
  • Added load tests to evaluate system performance under stress
  • Enhanced migration script and Makefile with Docker database setup targets
  • Updated documentation in README.md

RD2W added 26 commits November 19, 2025 20:04
This commit includes several major improvements to the application structure:

1. Created new packages under internal/app/ for better code organization:
   - internal/app/lifecycle/ with startup.go and shutdown.go for common server lifecycle management
   - internal/app/web-server/ with server.go and routes.go for web server logic
   - internal/app/grpc-server/ with server.go for gRPC server logic
   - internal/app/grpc-client/ with client.go for gRPC client logic

2. Updated main.go files to use the new packages:
   - cmd/web-server/main.go now uses webserver package
   - cmd/grpc-server/main.go now uses grpcserver package
   - cmd/grpc-client/main.go now uses grpcclient package

3. Fixed Swagger documentation basePath issue:
   - Removed '/api' prefix from @router annotations in handler files
   - This resolves the duplicate basePath issue where Swagger UI was showing /api/api instead of /api
   - Updated docs/swagger.json, docs/swagger.yaml, and docs/docs.go accordingly

4. Improved route organization:
   - Extracted route setup to internal/app/web-server/routes.go
   - Made the code more modular and maintainable
@RD2W
RD2W merged commit 7183657 into dev Nov 25, 2025
4 checks passed
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.

1 participant