-
Notifications
You must be signed in to change notification settings - Fork 4
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 Unit Tests For Market Feature #1103
Merged
Merged
Conversation
This file contains 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
This commit introduces unit tests for the following modules: - MeasureUnitViewModelTest - AddEditMeasureUnit ViewModelTest - MeasureUnitSettingsViewModelTest These tests cover various aspects of the modules' functionality, including: - Initial state of view models - Data loading and updates - Search functionality - Item deletion - Error handling - Saving and updating items The tests ensure that the modules behave as expected and provide comprehensive coverage of their functionality.
This commit introduces unit tests for the following components of the MarketType screen: - MarketTypeViewModel - AddEditMarketTypeViewModel - MarketTypeSettingsViewModel These tests cover various scenarios, including initial states, data population, search functionality, item selection, deletion, and data import/export.
This commit introduces UI tests for the MarketItem and MarketList screens. - Added tests for ` MarketItemViewModel`, `MarketItemSettingsViewModel`, `AddEditMarketItemViewModel`, and `MarketListViewModel`. - Added screenshot tests for `MarketItemScreen` and `MarketListScreen`. - Updated `TestMarketItemRepository` to include `updateMarketTypeAndIdData` function. - Updated `TestMarketListRepository` to include functions for managing market lists and types. - Refactored `MarketTypeIdAndName` to include `searchItems` function. - Updated `AddEditMarketItemViewModel` to use `SavedStateHandle` for managing item ID. - Updated `MarketItemViewModel` to log analytics events for item deletion. - Renamed `MarketItemScreenScreenshotTest` and `MarketListScreenScreenshotTest` to include the `marketItem` and `marketList` package names.
…#1102) Bumps [org.jetbrains.kotlinx:kotlinx-collections-immutable](https://github.com/Kotlin/kotlinx.collections.immutable) from 0.3.7 to 0.3.8. - [Release notes](https://github.com/Kotlin/kotlinx.collections.immutable/releases) - [Changelog](https://github.com/Kotlin/kotlinx.collections.immutable/blob/master/CHANGELOG.md) - [Commits](Kotlin/kotlinx.collections.immutable@v0.3.7...v0.3.8) --- updated-dependencies: - dependency-name: org.jetbrains.kotlinx:kotlinx-collections-immutable dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit fb30bb8)
Bumps [com.google.truth:truth](https://github.com/google/truth) from 1.4.2 to 1.4.4. - [Release notes](https://github.com/google/truth/releases) - [Commits](google/truth@v1.4.2...v1.4.4) --- updated-dependencies: - dependency-name: com.google.truth:truth dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit bb484de)
Bumps com.guardsquare.appsweep from 1.5.8 to 1.5.9. --- updated-dependencies: - dependency-name: com.guardsquare.appsweep dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit 498e361)
Bumps `raamcostaVersion` from 1.9.56 to 1.11.6. Updates `io.github.raamcosta.compose-destinations:animations-core` from 1.9.56 to 1.11.6 - [Release notes](https://github.com/raamcosta/compose-destinations/releases) - [Commits](raamcosta/compose-destinations@1.9.56...1.11.6) Updates `io.github.raamcosta.compose-destinations:ksp` from 1.9.56 to 1.11.6 - [Release notes](https://github.com/raamcosta/compose-destinations/releases) - [Commits](raamcosta/compose-destinations@1.9.56...1.11.6) --- updated-dependencies: - dependency-name: io.github.raamcosta.compose-destinations:animations-core dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: io.github.raamcosta.compose-destinations:ksp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit adc9381)
Bumps `detekt` from 1.23.6 to 1.23.7. Updates `io.gitlab.arturbosch.detekt:detekt-gradle-plugin` from 1.23.6 to 1.23.7 - [Release notes](https://github.com/detekt/detekt/releases) - [Commits](detekt/detekt@v1.23.6...v1.23.7) Updates `io.gitlab.arturbosch.detekt:detekt-formatting` from 1.23.6 to 1.23.7 - [Release notes](https://github.com/detekt/detekt/releases) - [Commits](detekt/detekt@v1.23.6...v1.23.7) Updates `io.gitlab.arturbosch.detekt` from 1.23.6 to 1.23.7 Updates `io.github.detekt.gradle.compiler-plugin` from 1.23.6 to 1.23.7 --- updated-dependencies: - dependency-name: io.gitlab.arturbosch.detekt:detekt-gradle-plugin dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.gitlab.arturbosch.detekt:detekt-formatting dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.gitlab.arturbosch.detekt dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.github.detekt.gradle.compiler-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit 7ee8e64)
Bumps `protobuf` from 4.26.1 to 4.28.1. Updates `com.google.protobuf:protobuf-kotlin-lite` from 4.26.1 to 4.28.1 Updates `com.google.protobuf:protoc` from 4.26.1 to 4.28.1 - [Release notes](https://github.com/protocolbuffers/protobuf/releases) - [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/protobuf_release.bzl) - [Commits](https://github.com/protocolbuffers/protobuf/commits) --- updated-dependencies: - dependency-name: com.google.protobuf:protobuf-kotlin-lite dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: com.google.protobuf:protoc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit e01138f)
Bumps `spotlessVersion` from 6.23.3 to 6.25.0. Updates `com.diffplug.spotless:spotless-plugin-gradle` from 6.23.3 to 6.25.0 - [Release notes](https://github.com/diffplug/spotless/releases) - [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md) - [Commits](diffplug/spotless@gradle/6.23.3...gradle/6.25.0) Updates `com.diffplug.spotless` from 6.23.3 to 6.25.0 --- updated-dependencies: - dependency-name: com.diffplug.spotless:spotless-plugin-gradle dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: com.diffplug.spotless dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit 7938e5c)
Bumps `kotlinxCoroutines` from 1.8.1 to 1.9.0. Updates `org.jetbrains.kotlinx:kotlinx-coroutines-core` from 1.8.1 to 1.9.0 - [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases) - [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md) - [Commits](Kotlin/kotlinx.coroutines@1.8.1...1.9.0) Updates `org.jetbrains.kotlinx:kotlinx-coroutines-android` from 1.8.1 to 1.9.0 - [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases) - [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md) - [Commits](Kotlin/kotlinx.coroutines@1.8.1...1.9.0) Updates `org.jetbrains.kotlinx:kotlinx-coroutines-guava` from 1.8.1 to 1.9.0 - [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases) - [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md) - [Commits](Kotlin/kotlinx.coroutines@1.8.1...1.9.0) Updates `org.jetbrains.kotlinx:kotlinx-coroutines-test` from 1.8.1 to 1.9.0 - [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases) - [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md) - [Commits](Kotlin/kotlinx.coroutines@1.8.1...1.9.0) --- updated-dependencies: - dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-core dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-android dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-guava dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-test dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit a15d10d)
Bumps the kotlin-ksp-compose group with 2 updates: [com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin](https://github.com/google/ksp) and [com.google.devtools.ksp](https://github.com/google/ksp). Updates `com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin` from 2.0.20-1.0.24 to 2.0.20-1.0.25 - [Release notes](https://github.com/google/ksp/releases) - [Commits](google/ksp@2.0.20-1.0.24...2.0.20-1.0.25) Updates `com.google.devtools.ksp` from 2.0.20-1.0.24 to 2.0.20-1.0.25 - [Release notes](https://github.com/google/ksp/releases) - [Commits](google/ksp@2.0.20-1.0.24...2.0.20-1.0.25) --- updated-dependencies: - dependency-name: com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kotlin-ksp-compose - dependency-name: com.google.devtools.ksp dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kotlin-ksp-compose ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit 6087fb5)
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.
This commit introduces unit tests for the following components of the MarketType screen:
These tests cover various scenarios, including initial states, data population, search functionality, item selection, deletion, and data import/export.