Skip to content

✨ Release 0.6.0-pre-prod

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 28 Aug 14:59
· 40 commits to develop since this release

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.
    • BcryptPasswordHasher: comprehensive tests for password hashing and verification, including edge cases, invalid hashes, special/unicode characters, and long passwords.
  • New CI/CD GitHub Actions pipeline:
    • Split jobs for clarity and speed:
      • unit-tests: runs all domain and lib unit tests with coverage reporting.
      • integration-tests: runs all API integration tests (with Uvicorn server startup).
    • Explicit job naming for easier understanding and log analysis.
    • Separate pip cache keys for each test type to optimize build speed.
    • Summary step at the end of each job for quick feedback.
    • Integration tests only run if unit tests pass (job dependency).

🛠️ Files Added/Modified

  • src/domain/tests/test_profile_service.py
  • src/domain/tests/test_group_service.py
  • src/domain/tests/test_exercise_service.py
  • src/domain/tests/test_training_service.py
  • src/domain/tests/test_diet_service.py
  • src/domain/tests/test_bcrypt_password_hasher.py
  • .github/workflows/tests.yml (refactored CI/CD pipeline)

🧪 Test/CI Coverage

  • Strict verification of all business logic and error cases
  • Robustness against integration errors (hashing, mocks, dependencies, API)
  • Security coverage for sensitive operations (password hashing/verification)
  • Automated unit and integration tests on every Pull Request

Check GitHub Actions logs for detailed test outcomes and coverage reports!

Tags

  • Version: 0.6.0-pre-prod

Docker Package

# Pull specific version
docker pull ghcr.io/track-train/api:0.6.0-pre-prod
# Pull latest pre-release
docker pull ghcr.io/track-train/api:pre-release

Information

  • PR Title: #feat unitary testing #47
  • Version Type: New Features
  • Source branch: feat/unitary-testing#47
  • Target branch: develop
  • Release type: Pre-production
  • PR author: @Baptiste-Ferrand