ryanw-mobile / OctoMeter

🔥Kotlin Multiplatform Desktop/Android/iOS Energy Tracker app
Other
126 stars 10 forks source link

(#23) Introduce Room Multiplatform Database #223

Closed ryanw-mobile closed 3 months ago

ryanw-mobile commented 3 months ago

Set up Jetpack Room Kotlin Multiplatform database, with initially a table for consumption. Robolectric unit tests for the DAO are also available.

We need to observe the increase in build time, as locally it was a disaster when doing a clean build.

codacy-production[bot] commented 3 months ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: -0.07% (target: -1.00%) :white_check_mark: 50.00%
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (d98a7faea87be5fa3d72132f524d580203b01249) | 1827 | 981 | 53.69% | | | Head commit (4db6ba90b7fcb3fd0f3609e150b16e5e3ba1de09) | 1846 (+19) | 990 (+9) | 53.63% (**-0.07%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#223) | 18 | 9 | **50.00%** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences


:rocket: Don’t miss a bit, follow what’s new on Codacy.

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 38.88889% with 11 lines in your changes missing coverage. Please review.

Project coverage is 49.74%. Comparing base (d98a7fa) to head (4db6ba9).

Files Patch % Lines
...ta/source/local/database/RoomDatabaseDataSource.kt 0.00% 9 Missing :warning:
...mi/data/source/local/database/InstantConverters.kt 33.33% 0 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #223 +/- ## ========================================== - Coverage 49.85% 49.74% -0.12% ========================================== Files 94 98 +4 Lines 1757 1775 +18 Branches 251 253 +2 ========================================== + Hits 876 883 +7 - Misses 805 814 +9 - Partials 76 78 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.