StanfordSpezi / SpeziKt

Kotlin & Android Version of the Stanford Spezi Framework
http://spezi.health/SpeziKt/
MIT License
7 stars 1 forks source link

Instrumentation tests #41

Closed eldcn closed 2 weeks ago

eldcn commented 3 weeks ago

Instrumentation tests

TODO:

:recycle: Current situation & Problem

Link any open issues or pull requests (PRs) related to this PR. Please ensure that all non-trivial PRs are first tracked and discussed in an existing GitHub issue or discussion.

:gear: Release Notes

Add a bullet point list summary of the feature and possible migration guides if this is a breaking change so this section can be added to the release notes. Include code snippets that provide examples of the feature implemented or links to the documentation if it appends or changes the public interface.

:books: Documentation

Please ensure that you properly document any additions in conformance to Spezi Documentation Guide. You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.

:white_check_mark: Testing

Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested. This section describes important information about the tests and why some elements might not be testable.

:pencil: Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 11.76471% with 90 lines in your changes missing coverage. Please review.

Project coverage is 26.00%. Comparing base (b9f4ae6) to head (a6dd47f).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41/graphs/tree.svg?width=650&height=150&src=pr&token=rrQTC1h5A7&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi)](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) ```diff @@ Coverage Diff @@ ## main #41 +/- ## ============================================ - Coverage 26.40% 26.00% -0.40% - Complexity 193 195 +2 ============================================ Files 101 102 +1 Lines 2860 2920 +60 Branches 404 403 -1 ============================================ + Hits 755 759 +4 - Misses 2063 2124 +61 + Partials 42 37 -5 ``` | [Flag](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) | `26.00% <11.77%> (-0.40%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) | Coverage Δ | | |---|---|---| | [.../module/onboarding/onboarding/OnboardingUiState.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?src=pr&el=tree&filepath=modules%2Fonboarding%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fspezi%2Fmodule%2Fonboarding%2Fonboarding%2FOnboardingUiState.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-bW9kdWxlcy9vbmJvYXJkaW5nL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvc3BlemkvbW9kdWxlL29uYm9hcmRpbmcvb25ib2FyZGluZy9PbmJvYXJkaW5nVWlTdGF0ZS5rdA==) | `100.00% <100.00%> (+14.29%)` | :arrow_up: | | [...d/bdh/engagehf/bluetooth/screen/BluetoothScreen.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?src=pr&el=tree&filepath=app%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fbdh%2Fengagehf%2Fbluetooth%2Fscreen%2FBluetoothScreen.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-YXBwL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvYmRoL2VuZ2FnZWhmL2JsdWV0b290aC9zY3JlZW4vQmx1ZXRvb3RoU2NyZWVuLmt0) | `0.00% <0.00%> (ø)` | | | [...stanford/spezi/module/account/login/LoginScreen.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?src=pr&el=tree&filepath=modules%2Faccount%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fspezi%2Fmodule%2Faccount%2Flogin%2FLoginScreen.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-bW9kdWxlcy9hY2NvdW50L3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvc3BlemkvbW9kdWxlL2FjY291bnQvbG9naW4vTG9naW5TY3JlZW4ua3Q=) | `0.00% <0.00%> (ø)` | | | [...rd/spezi/module/account/register/RegisterScreen.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?src=pr&el=tree&filepath=modules%2Faccount%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fspezi%2Fmodule%2Faccount%2Fregister%2FRegisterScreen.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-bW9kdWxlcy9hY2NvdW50L3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvc3BlemkvbW9kdWxlL2FjY291bnQvcmVnaXN0ZXIvUmVnaXN0ZXJTY3JlZW4ua3Q=) | `0.00% <0.00%> (ø)` | | | [...arding/sequential/components/OnboardingViewPage.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?src=pr&el=tree&filepath=modules%2Fonboarding%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fspezi%2Fmodule%2Fonboarding%2Fsequential%2Fcomponents%2FOnboardingViewPage.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-bW9kdWxlcy9vbmJvYXJkaW5nL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvc3BlemkvbW9kdWxlL29uYm9hcmRpbmcvc2VxdWVudGlhbC9jb21wb25lbnRzL09uYm9hcmRpbmdWaWV3UGFnZS5rdA==) | `0.00% <0.00%> (ø)` | | | [...zi/core/design/component/ComposeContentActivity.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?src=pr&el=tree&filepath=core%2Fdesign%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fspezi%2Fcore%2Fdesign%2Fcomponent%2FComposeContentActivity.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-Y29yZS9kZXNpZ24vc3JjL21haW4va290bGluL2VkdS9zdGFuZm9yZC9zcGV6aS9jb3JlL2Rlc2lnbi9jb21wb25lbnQvQ29tcG9zZUNvbnRlbnRBY3Rpdml0eS5rdA==) | `0.00% <0.00%> (ø)` | | | [...d/spezi/module/onboarding/consent/ConsentScreen.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?src=pr&el=tree&filepath=modules%2Fonboarding%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fspezi%2Fmodule%2Fonboarding%2Fconsent%2FConsentScreen.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-bW9kdWxlcy9vbmJvYXJkaW5nL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvc3BlemkvbW9kdWxlL29uYm9hcmRpbmcvY29uc2VudC9Db25zZW50U2NyZWVuLmt0) | `0.00% <0.00%> (ø)` | | | [...odule/onboarding/onboarding/OnboardingViewModel.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?src=pr&el=tree&filepath=modules%2Fonboarding%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fspezi%2Fmodule%2Fonboarding%2Fonboarding%2FOnboardingViewModel.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-bW9kdWxlcy9vbmJvYXJkaW5nL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvc3BlemkvbW9kdWxlL29uYm9hcmRpbmcvb25ib2FyZGluZy9PbmJvYXJkaW5nVmlld01vZGVsLmt0) | `78.27% <66.67%> (+22.71%)` | :arrow_up: | | [.../onboarding/sequential/components/PageIndicator.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?src=pr&el=tree&filepath=modules%2Fonboarding%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fspezi%2Fmodule%2Fonboarding%2Fsequential%2Fcomponents%2FPageIndicator.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-bW9kdWxlcy9vbmJvYXJkaW5nL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvc3BlemkvbW9kdWxlL29uYm9hcmRpbmcvc2VxdWVudGlhbC9jb21wb25lbnRzL1BhZ2VJbmRpY2F0b3Iua3Q=) | `0.00% <0.00%> (ø)` | | | [...nboarding/sequential/SequentialOnboardingScreen.kt](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?src=pr&el=tree&filepath=modules%2Fonboarding%2Fsrc%2Fmain%2Fkotlin%2Fedu%2Fstanford%2Fspezi%2Fmodule%2Fonboarding%2Fsequential%2FSequentialOnboardingScreen.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-bW9kdWxlcy9vbmJvYXJkaW5nL3NyYy9tYWluL2tvdGxpbi9lZHUvc3RhbmZvcmQvc3BlemkvbW9kdWxlL29uYm9hcmRpbmcvc2VxdWVudGlhbC9TZXF1ZW50aWFsT25ib2FyZGluZ1NjcmVlbi5rdA==) | `0.00% <0.00%> (ø)` | | | ... and [2 more](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) | | ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi). Last update [b9f4ae6...a6dd47f](https://app.codecov.io/gh/StanfordSpezi/SpeziKt/pull/41?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi).