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

TTRPG-Dev / ex_ttrpg_dev / 5f8eb399c7998045524dec74489e17ecd3bb9828-PR-111
86%
main: 87%

Build:
Build:
LAST BUILD BRANCH: qmalcolm--feat-harden-config-error-messages
DEFAULT BRANCH: main
Ran 02 May 2026 04:27AM UTC
Jobs 1
Files 19
Run time 1min
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

02 May 2026 04:20AM UTC coverage: 85.294% (-2.5%) from 87.779%
5f8eb399c7998045524dec74489e17ecd3bb9828-PR-111

Pull #111

github

QMalcolm
test(cli/server): verify resolve_choice wires into add_to_typed_inventory

The resolve_choice handler was updated to call apply_inventory_addition!/4
which delegates to Characters.add_to_typed_inventory/4, but there was no
test proving the wiring is correct at the server level.

Add a describe block that builds a Wizard character (deterministic class)
via the build flow and then resolves spell choices through
characters.resolve_choice:

- Resolving a cantrip choice adds the spell to inventory with
  prepared: true (cantrips are auto-activated via add_on_progression)
- Resolving a spells_known choice adds the spell to inventory with
  prepared: false (manual preparation required)

Both tests then read characters.inventory to confirm the item and its
prepared field, exercising the full resolve_choice → inventory path.
Pull Request #111: feat: spell preparation for dnd_5e_srd

372 of 435 new or added lines in 5 files covered. (85.52%)

14 existing lines in 4 files now uncovered.

1218 of 1428 relevant lines covered (85.29%)

9910.72 hits per line

Uncovered Changes

Lines Coverage ∆ File
34
69.72
-13.82% apps/ttrpg_dev_cli/lib/cli/server.ex
15
86.06
-1.96% apps/ex_ttrpg_dev/lib/characters.ex
10
94.82
apps/ttrpg_dev_cli/lib/cli/serializer.ex
4
90.38
-9.62% apps/ex_ttrpg_dev/lib/rule_system/inventory_rules.ex

Coverage Regressions

Lines Coverage ∆ File
11
86.06
-1.96% apps/ex_ttrpg_dev/lib/characters.ex
1
90.38
-9.62% apps/ex_ttrpg_dev/lib/rule_system/inventory_rules.ex
1
85.71
-4.76% apps/ttrpg_dev_cli/lib/cli/concept_display.ex
1
69.72
-13.82% apps/ttrpg_dev_cli/lib/cli/server.ex
Jobs
ID Job ID Ran Files Coverage
1 5f8eb399c7998045524dec74489e17ecd3bb9828-PR-111.1 02 May 2026 04:27AM UTC 19
85.29
GitHub Action Run
Source Files on build 5f8eb399c7998045524dec74489e17ecd3bb9828-PR-111
  • Tree
  • List 19
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #111
  • PR Base - main (#3412BF15...)
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