feat:Refactor CI/CD workflows and enhance testing coverage#1
Merged
aunchagaonkar merged 3 commits intomainfrom Sep 7, 2025
Merged
feat:Refactor CI/CD workflows and enhance testing coverage#1aunchagaonkar merged 3 commits intomainfrom
aunchagaonkar merged 3 commits intomainfrom
Conversation
Key changes: - Added testing dependencies: MockK for mocking, Hilt for test dependency injection, and kotlinx-coroutines-test for coroutine testing. - Implemented unit tests for the data, domain, and presentation layers, covering ViewModels, UseCases, Repositories, and DataSources. - Added a lightweight unit test for the utility functions. - Updated the README.md with detailed instructions on how to run the unit tests. - Configured the build to support the new tests. - Updated build.yml to include pull request triggers for feature branches and added unit test execution step. - Removed build_pull_request.yml file.
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the CI/CD workflows and significantly enhances testing coverage by implementing comprehensive unit tests across all application layers. The changes modernize the build process and provide extensive test coverage for ViewModels, UseCases, Repositories, and DataSources.
- Consolidated CI/CD workflows by removing the separate PR build workflow and extending the main build workflow to handle pull requests
- Implemented comprehensive unit testing infrastructure with MockK, Hilt testing support, and coroutine testing utilities
- Added unit tests covering data layer (repositories and data sources), domain layer (use cases), and presentation layer (view models)
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/build.yml | Extended to support PR triggers and added unit test execution with artifact uploads |
| .github/workflows/build_pull_request.yml | Removed redundant PR-specific workflow |
| .github/workflows/release.yml | Cleaned up by removing Gradle cache configuration |
| gradle/libs.versions.toml | Added testing dependencies (MockK, coroutines-test, Hilt testing) |
| app/build.gradle.kts | Configured test options and added testing dependencies |
| hiddenapi/build.gradle.kts | Removed targetSdk configuration |
| README.md | Updated with testing instructions and corrected repository references |
| app/src/test/java/... | Added comprehensive unit tests for all application layers |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Key changes: