-
Notifications
You must be signed in to change notification settings - Fork 62
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
Performance tests for loading register data #2592
Conversation
95b0d34
to
fef6ac9
Compare
Codecov Report
@@ Coverage Diff @@
## main #2592 +/- ##
=========================================
- Coverage 65.4% 65.4% -0.1%
- Complexity 1101 1148 +47
=========================================
Files 213 216 +3
Lines 9385 9743 +358
Branches 1866 1932 +66
=========================================
+ Hits 6140 6372 +232
- Misses 2047 2154 +107
- Partials 1198 1217 +19
Flags with carried forward coverage won't be shown. Click here to find out more.
|
299fece
to
dd94e2a
Compare
5ae5279
to
2158133
Compare
...androidTest/java/org/smartregister/fhircore/performance/HouseholdRegisterPerformanceTests.kt
Show resolved
Hide resolved
2158133
to
1a79ea0
Compare
android/quest/build.gradle.kts
Outdated
@@ -361,8 +370,79 @@ dependencies { | |||
androidTestImplementation(libs.ui.test.junit4) | |||
androidTestImplementation(libs.hilt.android.testing) | |||
androidTestImplementation(libs.mockk.android) | |||
androidTestImplementation("androidx.benchmark:benchmark-junit4:1.1.1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this to libs.versions.toml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this still need to be moved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
...ne/src/main/java/org/smartregister/fhircore/engine/data/local/register/RegisterRepository.kt
Outdated
Show resolved
Hide resolved
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
api-level: [28] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah I see now, it'd be nice to get this down to 26 or whatever level we say we're supporting, but feels like better for follow-up work not this pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
...androidTest/java/org/smartregister/fhircore/performance/HouseholdRegisterPerformanceTests.kt
Show resolved
Hide resolved
- Run instrumentation tests and pull coverage file into quest directory. Include the coverage file in Jacoco task
- Fixes the class bytecode being different for the instrumentation test and unit tests
3d94700
to
a37158a
Compare
1. Unit tests | ||
2. UI and integration tests | ||
The OpenSRP Android app includes automated style, coverage, unit, user inteface / integartion, and performance testing. All tests are run through github actions on pull request and must be passed for a pull request to be merged without an admin override. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change must be passed
to must pass
* main: Make SideMenu items scrollable (#2645) Add progress indicator for report generation (#2635) CHT measure report result screen (#2624) Provide missing QuestionnaireResponse in bundle param for FhirCarePlanGenerator#conditionallyUpdateResourceStatus (#2643) Fix resource closure failure after server sync (#2639) Fix build add more further reading (#2637) Refactor questionnaire implementation (#2622) Fix Unit Tests + Build 💚 Fix Unit Tests ✅ Clean up Fix Unit tests ✅ Updating the login flow to save multiple practitioner details (#2623) Disable Dialog Dismiss Incase of Initial Sync Errors (#2608) Add the new ecbis production flavor Performance tests for loading register data (#2592) Fix back navigation for date selection page (#2628) Create github release file (#2611) Add form authoring consideration documentation (#2618)
* Draft: Commit * Daft commit: Run tests i CI * code cleanup * Remove other CI tasks * Fix performance tests assertion * Fix performance tests assertion * Fix performance tests assertion * Allow SSH debugging * Rerun SSH debugging * Breakdown performance testing steps * Breakdown performance testing steps * Breakdown performance testing steps * Breakdown performance testing steps * Fix instrumentation running * Fix instrumentation running * Fix instrumentation running * Fix instrumentation running * Fix instrumentation running * Fix apk install sequence * List files in the sdcard/Download folder * Enable JSON output for performance test results * Enable JSON output for performance test results * Fix instrumentation running * Fix instrumentation running * Fix instrumentation running * Fix instrumentation running * Fix instrumentation running * Fix instrumentation running * Update performance tests github workflow - Revert github workflow for CI - Revert household register page size to 20 * Run quest instrumentation tests before fhircoreJacocoReport task * Clean up gradle files & performance results evaluation task * Update the expected performance numbers for HouseholdRegister tests * Refactor evaluatePerformanceBenchmarkResults * Add compressed and zipped resources.db for performance testing * Update performance-tests workflow to extract resources.db * Ignore the resources.db in quest/androidTest * Reformat and clean code * Update quest tests to skip performance tests - Run instrumentation tests and pull coverage file into quest directory. Include the coverage file in Jacoco task * Run instrumentation tests for opensrp variant instead of ecbis - Fixes the class bytecode being different for the instrumentation test and unit tests * Update android/jacoco.gradle.kts * Update android/quest/build.gradle.kts * Update performance-tests.yml * fix multiline comments * expanding testing section * add note on coverage and performance * add change note --------- Co-authored-by: Ephraim Kigamba <n.kigamba@students.ku.ac.ke> Co-authored-by: Peter Lubell-Doughtie <peter@ona.io>
IMPORTANT: Where possible all PRs must be linked to a Github issue
Fixes #2066
Engineer Checklist
strings.xml
file./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the project's style guideCode Reviewer Checklist
strings.xml
file