Org-FoodService / FoodServiceAPI

FoodService is a .NET 8.0-based service, optimizing snack bar operations through menu management, inventory tracking, and potential delivery integration. With Docker and SQLServer dependencies, it streamlines processes for snack bar owners, enhancing efficiency and customer experience.
https://foodservice-api.azurewebsites.net/swagger
2 stars 1 forks source link

Development of unit tests #29

Open NicolasBuscarini opened 1 month ago

NicolasBuscarini commented 1 month ago

Story:

As a developer on the FoodServiceAP engineering team, I want to implement comprehensive unit tests to ensure code quality and reduce the occurrence of bugs, so that we can release more stable and reliable versions of the product.

Acceptance Criteria:

  1. Environment Setup:

    • The development environment must be configured with the necessary tools and libraries for writing, running, and reporting unit tests.
  2. Minimum 80% Coverage:

    • All modules and functionalities of the source code must be covered by unit tests.
    • Code coverage should reach at least 80%, as measured by coverage analysis tools.
  3. Comprehensive Testing:

    • Unit tests should cover different scenarios and use cases, including success cases, failure cases, and edge cases.
    • Tests should validate business logic, data manipulation, integration with external APIs, and other critical system functionalities.
  4. Coding Standards:

    • Tests should follow coding standards and conventions established by the team, ensuring consistency and readability.
    • Code review should be conducted to ensure the quality of the written tests.
  5. Integration with CI/CD:

    • Unit tests should be integrated into the continuous integration (CI) pipeline for automatic execution on each new code build.

Definition of Done:

Additional Notes: