Repository navigation
Unit Tests Coverage
-
Although we were recently assigned the task of updating unit tests for all subgroups, during the first milestone the frontend and mobile teams had difficulty meeting their deadlines. To prevent the same issue from happening again, we decided to complete all backend tasks as early as possible this time.
-
As a result, most of the endpoints were developed and updated within the first week of the first milestone. Since then, we have completed the remaining endpoints and fixed several bugs reported by the mobile and frontend teams.
-
After finishing all backend tasks and being assigned the unit test updates last week, we created several backend unit test issues to ensure full coverage for the newly implemented endpoints, as well as for areas where entities and models had been updated but tests were lagging behind. Therefore, last week, Celil and Özgür completed the backend unit tests. Hence in this document we will briefly mention our backend unit test status and also link some of the PRs that contributed to unit tests.
-
We need to acknowledge the fact that although we had a strict policy that we write unit tests after updating any part of the code, we couldn’t follow this policy due to insufficient time. Hence we introduced some main PRs introducing main updates to unit tests, such as PR #519. Here you can find our PR template, including some boxes that the assignee also introduced unit tests regarding his updates:
- PR 521: PR related to incorrect assignment of cost per serving field due to user preferred currency. Also included tests regarding ingredients model and serializers, also unit tests for recipes.
- PR 519: One of the most focused and detailed PRs regarding unit tests updates with all changes that are introduced in 451 after.
- PR 221 Adding community forum page posts and comments features and also their unit tests
- BACKEND: Add Unbookmark Endpoint and Fix Login Security (PR 536)
- BACKEND: Add User Recipe Count Endpoint with Badge System (PR 518)
- Integrate Wikidata API and Fix Recipe Rating Systems Inconsistencies (PR 240)
- Recipe Ratings API Endpoints Implementation (PR 232)
Our tests were already adequate and have high coverage (~90 percent). Therefore, in the lab, we focused on old, broken tests after changes were made in CMPE451. We fixed 8 test files, increased their coverage, and added 4 scenario-specific tests. Now, all of our tests are running successfully. Here are the related issues and PRs made during the lab session:
Ali:
- Issue: https://github.com/bounswe/bounswe2025group6/issues/553
- Related PR: https://github.com/bounswe/bounswe2025group6/pull/554
Seyit:
- Issue: https://github.com/bounswe/bounswe2025group6/issues/555
- Related PR: https://github.com/bounswe/bounswe2025group6/pull/557
Muhammed:
- Issue: https://github.com/bounswe/bounswe2025group6/issues/556
- Related PR: https://github.com/bounswe/bounswe2025group6/pull/559
Talha:
- Issue: https://github.com/bounswe/bounswe2025group6/issues/558
- Related PR: https://github.com/bounswe/bounswe2025group6/pull/560
We implemented some unit tests for different pages and also added selenium end-to-end tests. Here are the related issues and PRs made during the lab session:
Ahmet Hacıoğlu:
- Issue: https://github.com/bounswe/bounswe2025group6/issues/546
- Related PR: https://github.com/bounswe/bounswe2025group6/pull/550
Ahmet Selçuk Ersoy:
- Issue: https://github.com/bounswe/bounswe2025group6/issues/547
- Related PR: https://github.com/bounswe/bounswe2025group6/pull/549
- Description: Frontend unit tests for DashboardPage and HomePage with testHelpers utilities. Includes tests for component rendering, user interactions, authentication flows, and error handling.
Bahadır:
- Issue: https://github.com/bounswe/bounswe2025group6/issues/548
- Related PR: https://github.com/bounswe/bounswe2025group6/pull/552
Taha Ensar Kukul:
- Issue: https://github.com/bounswe/bounswe2025group6/issues/545
- Related PR: https://github.com/bounswe/bounswe2025group6/pull/564
- Description: Selenium setup is completed. Frontend E2E test for authentication using selenium is added.
- Customer Milestone 1 Report of CMPE 451 Fall 2025
- Customer Milestone 2 Report of CMPE 451 Fall 2025
- Customer Milestone 3 Report of CMPE 451 Fall 2025
- Customer Milestone 2 Template Report of CMPE 451 Fall 2025
- Lab8: Requirements Review & Acceptance Planning
- Lab 9: Milestone 3 Demo Preparation
- Celil Özkan (Backend)
- Cem Sarpkaya (Backend)
- Özgür Savaşçıoğlu (Backend)
- Taha Ensar Kukul (Frontend)
- Ahmet Hacıoğlu (Frontend)
- Ahmet Selçuk Ersoy (Frontend)
- Bahadır Demirel (Frontend)
- Muhammed Ekinci (Mobile)
- Ali Gökçek (Mobile)
- Seyit Mustafa Demir (Mobile)
- Talha Özdoğan (Mobile)
- Requirements
- Milestones Roadmap
- Lab 5: MVP Implementation & Planning
- Unit Tests Coverage
- Selenium Quick Start Guide
- Selenium Testing Guide
09-22 Week 1
09-29 Week 2
10-06 Week 3
10-13 Week 4
10-20 Week 5
10-27 Week 6
11-03 Week 7
11-10 Week 8
11-17 Week 9
11-24 Week 10
12-01 Week 11
12-08 Week 12
- Lab1 Report
- Lab2 Report
- Lab3 Report
- Lab4 Report
- Lab5 Report
- Lab6 Report
- Lab7 Report
- Lab8 Report
- Lab9 Report
- Lab Report Template
- Lab 1 Meeting Notes (23.09.2025)
- Lab 2 Meeting Notes (30.09.2025)
- Lab 3 Meeting Notes (07.10.2025)
- Lab 4 Meeting Notes (14.10.2025)
- Lab 5 Meeting Notes (04.11.2025)
- Lab 6 Meeting Notes (11.11.2025)
- Lab 7 Meeting Notes (18.11.2025)
- Lab 8 Meeting Notes (02.12.2025)
- Lab 9 Meeting Notes (09.12.2025)
- Meeting Agenda 1
- Meeting Agenda 2
- Meeting Agenda 3
- Meeting Agenda 4
- Meeting Agenda 5
- Meeting Agenda 6
- Meeting Notes 1 (16.02.2025)
- Meeting Notes 2 (24.02.2025)
- Meeting Notes 3 (27.02.2025)
- Meeting Notes 4 (04.03.2025)
- Meeting Notes 5 (06.03.2025)
- Meeting Notes 6 (13.03.2025)
- Meeting Notes 7 (17.03.2025)
- Meeting Notes 8 (21.04.2025)
- Meeting Notes 9 (28.04.2025)
- Meeting Notes 10 (01.05.2025)
- Meeting Notes 11 (06.05.2025)
- Lecture Notes 1 (13.02.2025)
- Lecture Notes 2 (20.02.2025)
- Lecture Notes 3 (27.02.2025)
- Lecture Notes 4 (06.03.2025)
- Lecture Notes 5 (13.03.2025)
- Project Concept Design
- Elicitation Questions
- Elicitation Q&A
- Backend Endpoints (DRAFT)
- Unit Tests Coverage
Click to Expand ⬇️
- Scenario 1 - User Register
- Scenario 2 - Dietitian Register
- Scenario 3 - User Login
- Scenario 4 - User Deletion
- Scenario 5 - Upload & Edit Recipe
- Scenario 6 - Single Meal Planning
- Scenario 7 - Grocery Price Comparison
- Scenario 8 - Community Forum
- Scenario 9 - Recipe Discovery & Filter
- Scenario 10 - Local Food Discovery
- Scenario 11 - Nutritional Guidance Interaction
- Scenario 12 - Market Inventory Management
- Scenario 13 - Profile Management and Preference Settings
- Scenario 14 - Rate and Comment the Recipe by User
- Scenario 15 - Bookmark a Meal and Access it in Profile Page
- Scenario 16 - Adding Nutrition Tips to a Dietitian Profile
- Scenario 17 - User Forget Password
- Scenario 18 ‐ User Follows Unfollows Users
- Scenario 19 - Allergen Alert and Meal Plan Adjustment
- Scenario 20 - Dietitian Rating of a Recipe