Skip to content

test(axum-discordsh): add 16 tests for serde, DamageReduction, gear, roster + e2e spec#7716

Merged
h0lybyte merged 1 commit intodevfrom
trunk/discordsh-tests-1772857288
Mar 7, 2026
Merged

test(axum-discordsh): add 16 tests for serde, DamageReduction, gear, roster + e2e spec#7716
h0lybyte merged 1 commit intodevfrom
trunk/discordsh-tests-1772857288

Conversation

@h0lybyte
Copy link
Member

@h0lybyte h0lybyte commented Mar 7, 2026

Summary

Test additions

  • content.rs: gear item validation, loot table integrity, unique IDs, rarity distribution
  • logic.rs: DamageReduction combat tests (single-target, AoE, minimum damage)
  • render.rs: embed roster format tests (member links, guest format, party order)
  • types.rs: serde round-trip tests (SessionState JSON structure, enum variants)
  • session-api.spec.ts: e2e tests for session JSON API + HTML viewer + security headers

Closes #7715

Test plan

  • cargo check -p axum-discordsh passes
  • CI passes

🤖 Generated with Claude Code

…roster + e2e spec

Add serde round-trip tests validating SessionState JSON structure, skipped
fields, string map keys, and all GearSpecial/GamePhase enum variants.
Add DamageReduction combat tests for single-target, AoE, and minimum damage.
Add gear validation tests for new items, loot table integrity, unique IDs,
and rarity distribution.
Add embed roster format tests for member links, guest format, and party order.
Add Playwright e2e spec for /api/session and /session viewer endpoints.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit ca9ea59 into dev Mar 7, 2026
4 checks passed
@h0lybyte h0lybyte deleted the trunk/discordsh-tests-1772857288 branch March 7, 2026 04:23
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.

1 participant