Skip to content

Conversation

@BassantM
Copy link
Collaborator

No description provided.

BassantM added 2 commits May 13, 2025 03:29
Introduced comprehensive unit tests for ProjectMateUi, ProjectTasksUi, ViewProjectsUi, and ProjectStateSelectedUi to validate behavior. Renamed `getTasksForProject` to `getProjectTasks` in related use cases and updated corresponding references across affected classes for consistency.
introduced new test cases to validate task-related operations for various UIs, including state-based task grouping, null input handling, and redirection logic. enhanced coverage to ensure accurate display of tasks or appropriate messages when no tasks are present.
@github-actions
Copy link

Overall Project 10.69% -0.14% 🍏
Files changed 44.68%

File Coverage
ProjectTasksUi.kt 97.78% 🍏
DeleteTaskUi.kt 9.6% -3.04%
EditTaskUi.kt 6.25% -1.77%
GetProjectTasksUseCase.kt 0% 🍏
GetTaskByStateIdAndProjectId.kt 0% 🍏

This test ensures that the UI for project tasks correctly handles cases where there are no tasks to display. It verifies that only headers and options are printed and no task details are shown, improving test coverage and reliability.
@github-actions
Copy link

Overall Project 10.71% -0.14% 🍏
Files changed 44.68%

File Coverage
ProjectTasksUi.kt 98.77% 🍏
DeleteTaskUi.kt 9.6% -3.04%
EditTaskUi.kt 6.25% -1.77%
GetProjectTasksUseCase.kt 0% 🍏
GetTaskByStateIdAndProjectId.kt 0% 🍏

every { reader.readInt() } returns 1 andThen 4 // First select view states, then exit

// Act
projectMateUi.show()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where then ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

made minor adjustments to variable naming and added necessary imports to improve code clarity and maintainability.
@github-actions
Copy link

Overall Project 10.38% -0.14% 🍏
Files changed 44.68%

File Coverage
ProjectTasksUi.kt 98.77% 🍏
DeleteTaskUi.kt 9.6% -3.04%
EditTaskUi.kt 6.25% -1.77%
GetProjectTasksUseCase.kt 0% 🍏
GetTaskByStateIdAndProjectId.kt 0% 🍏

YaseenOmar
YaseenOmar previously approved these changes May 13, 2025
ismailElkalili
ismailElkalili previously approved these changes May 13, 2025
@github-actions
Copy link

Overall Project 26.92% 🍏
File Coverage
GetTaskByStateIdAndProjectId.kt 100% 🍏

YaseenOmar
YaseenOmar previously approved these changes May 13, 2025
@BassantM BassantM dismissed stale reviews from YaseenOmar and Mostafa-khaled21 via afd186e May 13, 2025 14:29
@github-actions
Copy link

Overall Project 26.92% 🍏
File Coverage
GetTaskByStateIdAndProjectId.kt 100% 🍏

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.

4 participants