Skip to content

Commit

Permalink
feat: Update mobile app readme for code coverage (#3015)
Browse files Browse the repository at this point in the history
  • Loading branch information
SahilK-027 authored May 23, 2024
1 parent 7fde337 commit c5cc4ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,16 @@ ionic serve -c staging
- Run `npm run test:no-parallel` to run tests without sharding (without parallel browsers). This is useful to avoid parallel execution and to prevent excessive CPU utilization and memory hogging.

## Viewing coverage report
After running the tests, you can view the test coverage report by following these steps:

- Open generated `index.html` file present in the `app/coverage/index.html`.
- Metrics Explanation:
In this file you would see 4 metrics for the files you have changed
- Statements: Percentage of executed statements.
- Branches: Percentage of executed branches (e.g., conditions in if, else, switch statements, `&&`, `||`, `?` operators used).
- Functions: Percentage of executed functions.
- Lines: Percentage of executed lines of code.
- To increase code coverage write additional test cases to cover the missing Metrics.

## For running app directly in android device for staging

Expand Down

0 comments on commit c5cc4ac

Please sign in to comment.