Skip to content

Commit

Permalink
expanding testing section
Browse files Browse the repository at this point in the history
  • Loading branch information
pld committed Aug 1, 2023
1 parent edbd449 commit a652b0a
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions docs/engineering/android-app/introduction/readme.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ The application syncs particular resources (conventionally, Composition and Bina

### Testing

This FHIR Core repository includes:
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.

#### Style and coverage tests

We use [ktlint](https://github.com/pinterest/ktlint) via [spotless](https://github.com/diffplug/spotless) to run style checks against the entire codebase. We target to make these style checks as strict as possible in order to reduce bikeshedding in code reviews.

#### Unit tests

Unit tests are divided among the [engine](https://github.com/opensrp/fhircore/tree/main/android/engine/src/test), [geowidget](https://github.com/opensrp/fhircore/tree/main/android/geowidget/src/test/java/org/smartregister/fhircore/geowidget), and [quest](https://github.com/opensrp/fhircore/tree/main/android/quest/src/test) modules. These can be run locally and are run automatically through github actions when you submit a pull request. All tests must pass for a pull request to be merged.

#### User interface and integration tests

We run tests against screen renderings that function as user interface and integations tests. These are defined in the [quest](https://github.com/opensrp/fhircore/tree/main/android/quest/src/test) module. These can be run locally and are run automatically through github actions when you submit a pull request. All tests must pass for a pull request to be merged.

#### Performance tests

0 comments on commit a652b0a

Please sign in to comment.