#feat unitary testing #47#48
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #47
@changelog
🚀 Features
Full unit test coverage for domain layer:
ProfileService: unit tests for profile creation, update, deletion, login, roles, email, password management, and error handling.GroupService: unit tests for group creation, deletion, member management (add/remove), group/member listing, and coach listing.ExerciseService: unit tests for exercise creation, deletion, update, owner and global listing, and error handling.TrainingService: unit tests for training creation, deletion, update, task management (create/update/delete/list), validation management, and all relevant error cases.DietService: unit tests for diet creation, update, deletion, listing, macro plan and meal plan CRUD, as well as robust error and input handling.New CI/CD GitHub Actions pipeline:
unit-tests: runs all domain and lib unit tests with coverage reporting.integration-tests: runs all API integration tests (with Uvicorn server startup).🛠️ Files Added/Modified
src/domain/tests/test_profile_service.pysrc/domain/tests/test_group_service.pysrc/domain/tests/test_exercise_service.pysrc/domain/tests/test_training_service.pysrc/domain/tests/test_diet_service.pysrc/domain/tests/test_bcrypt_password_hasher.py.github/workflows/tests.yml(refactored CI/CD pipeline)🧪 Test/CI Coverage
Check GitHub Actions logs for detailed test outcomes and coverage reports!