Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Added screenshot & unit tests for home screen #1092

Merged
merged 3 commits into from
Sep 15, 2024
Merged

Conversation

niyajali
Copy link
Member

This commit introduces screenshot and unit tests for the home screen.

  • Added screenshot tests to verify the UI in different states (loading, empty, success).
  • Added unit tests for the HomeViewModel to ensure correct functionality.
  • Updated dependencies to the latest versions.
  • Removed unused dependencies and files.
  • Updated preview parameters with empty data for better testing.
  • Refactored code for better readability and maintain ability.
  • Updated workflows to include screenshot tests.
  • Fixed a memory leak issue with Google Services Plugin.
  • Disabled version check for Google Services Plugin to be compatible with configuration cache.

This commit introduces screenshot and unit tests for the home screen.

- Added screenshot tests to verify the UI
 in different states (loading, empty, success).
- Added unit tests for the HomeViewModel to ensure correct functionality.
- Updated dependencies to the latest versions.
- Removed unused dependencies and files.
- Updated preview parameters with empty data for better testing.
- Refactored code for better readability and maintain
ability.
- Updated workflows to include screenshot tests.
- Fixed a memory leak issue with Google Services Plugin.
- Disabled version check for Google Services Plugin to be compatible with configuration cache.
niyajali and others added 2 commits September 14, 2024 23:43
This commit moves the `HomeNavGraph` composable function from the `feature` package to the `
feature.home` package.

This change improves the organization of the codebase by grouping related components together.
Copy link
Contributor

Combined test coverage report

Overall Project 27.5% -0.03%
Files changed 32.01%

Module Coverage
home 45.48% -0.22% 🍏
ui 0.43% -0.19%
app 0% 🍏
Files
Module File Coverage
home SelectedOrderState.kt 100% 🍏
HomeViewModel.kt 86.58% -2.38% 🍏
HomeScreenProducts.kt 52.64% 🍏
HomeScreen.kt 34.5% -0.15% 🍏
ui ProductListPreviewParameter.kt 0% -7.54%
CartOrderPreviewParameter.kt 0% -10%
CartItemsPreviewParameter.kt 0% -4.89%
app MainActivity.kt 0% 🍏
RootNavGraph.kt 0% 🍏
PoposNavHost.kt 0% 🍏

Copy link

codecov bot commented Sep 15, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@niyajali niyajali merged commit 88c797c into main Sep 15, 2024
10 checks passed
@niyajali niyajali deleted the home-testing branch September 15, 2024 01:09
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.

1 participant