• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

medplum / medplum / 26251036785
92%

Build:
DEFAULT BRANCH: main
Ran 21 May 2026 08:30PM UTC
Jobs 1
Files 786
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 May 2026 08:07PM UTC coverage: 92.032% (+0.002%) from 92.03%
26251036785

push

github

web-flow
Add test case for Patient using $book operation (#8700)

* Add test case for Patient $book operation

This is likely to move into $hold when we implement it (see
https://github.com/medplum/medplum/issues/7688); for now we have started
using $book to demonstrate the flow in FooMedical (see
https://github.com/medplum/medplum/pull/8599) and so we would like to
add some test coverage supporting that use case.

Implementation notes:
- Adjusted `addTestUser` to accept an options object as its second
  argument. Previously this took an optional access policy, but
  switching to an options object lets us add features like
  `resourceType` in a clear way.

- `addTestUser` tries to log in as the newly created user, which
  requires a project ID for a user with a `Patient` profile. This means
  that `Practitioner` users are also now specifying that parameter, but
  my belief is that this was implicitly looked up from the user's
  projectMembership in that scenario and this represents no functional
  change.

Signed-off-by: Noah Silas <noah@medplum.com>

* Resolve merge

Signed-off-by: Noah Silas <noah@medplum.com>

* Resolve merge conflict

Signed-off-by: Noah Silas <noah@medplum.com>

---------

Signed-off-by: Noah Silas <noah@medplum.com>

21432 of 24152 branches covered (88.74%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

35210 of 37394 relevant lines covered (94.16%)

23574.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26251036785.1 21 May 2026 08:30PM UTC 916
92.28
GitHub Action Run
Source Files on build 26251036785
  • Tree
  • List 786
  • Changed 87
  • Source Changed 1
  • Coverage Changed 87
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26251036785
  • 3cc002cc on github
  • Prev Build on gh-readonly-queue/main/pr-8999-2db47766580ad356e7d86cada3f5f445e0a98faf (#26245060159)
  • Next Build on main (#26254400949)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc