Skip to content

test: add and complete Jasmine/Karma unit tests across TM-UI - #167

Merged
snehar-nd merged 1 commit into
mainfrom
sn/Testcases
Oct 29, 2026
Merged

snehar-nd merged 1 commit into
mainfrom
sn/Testcases

Conversation

@snehar-nd

Copy link
Copy Markdown
Contributor
  • karma.conf.js with headless Chrome and html/lcov/json-summary coverage; coverage excludes Common-UI, mocks, environments and test helpers
  • src/testing/test-utils.ts: autoSpy, language/session/dialog/confirmation mocks; unhandled RxJS errors are reported against the running spec instead of aborting the run
  • test:ci npm script
  • replace Angular CLI "should create" stubs and broken legacy specs with behavioural specs across core, registrar, nurse-doctor, lab, pharmacist, data-sync and login flows
  • new specs for TM-only cancer screening components (examination, history, vitals, case record, case sheet, refer) and NCD screening

3388 specs passing; line coverage 84.4%.

- karma.conf.js with headless Chrome and html/lcov/json-summary coverage;
  coverage excludes Common-UI, mocks, environments and test helpers
- src/testing/test-utils.ts: autoSpy, language/session/dialog/confirmation
  mocks; unhandled RxJS errors are reported against the running spec
  instead of aborting the run
- test:ci npm script
- replace Angular CLI "should create" stubs and broken legacy specs with
  behavioural specs across core, registrar, nurse-doctor, lab, pharmacist,
  data-sync and login flows
- new specs for TM-only cancer screening components (examination, history,
  vitals, case record, case sheet, refer) and NCD screening

3388 specs passing; line coverage 84.4%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 00fe1057-319b-409f-9562-33ff5eddce95
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
3.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@snehar-nd
snehar-nd merged commit b097c02 into main Oct 29, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants