Skip to content

Conversation

@igor47
Copy link
Owner

@igor47 igor47 commented Oct 23, 2025

Add extensive backfill testing for the computeCharacter service covering:

Full Casters (Wizard, Sorcerer, Cleric, Druid, Bard):

  • Spell slot progression at levels 1, 3, 5, 9, 10, 17
  • Cantrip counts at different levels
  • Hit dice verification
  • Class-specific traits and abilities
  • Spellcasting ability verification

Half Casters (Paladin, Ranger):

  • Spell slot progression (starting at level 2)
  • No cantrips verification
  • Hit dice and class traits
  • Max spell level checks

Third Casters (Eldritch Knight, Arcane Trickster):

  • Subclass-dependent spellcasting
  • Spell slots starting at level 3
  • Cantrip counts
  • Intelligence-based spellcasting
  • Max spell level progression (up to 4th level)
  • Champion Fighter as non-spellcasting control

Warlock Pact Magic:

  • Separate pact magic slot system
  • Slot progression at levels 1, 2, 5, 11, 17
  • Verification of mystic arcanum traits
  • Charisma-based spellcasting

Non-Spellcaster Classes (Barbarian, Monk, Fighter, Rogue):

  • Hit dice verification (d12, d8, d10, d8)
  • Class-specific traits (rage, ki, fighting style, sneak attack)
  • Unarmored defense and other features

Multiclassing Scenarios:

  • Full + Full (Wizard/Cleric, Sorcerer/Bard)
  • Full + Half (Wizard/Paladin, Cleric/Ranger)
  • Full + Third (Wizard/Eldritch Knight, Sorcerer/Arcane Trickster)
  • Half + Half (Paladin/Ranger)
  • Half + Third (Paladin/Eldritch Knight)
  • Warlock + others (separate pact magic tracking)
  • Triple multiclass (Wizard/Cleric/Bard)

Key Test Features:

  • Uses scenario-based testing approach from createCharacter tests
  • Follows AAA (Arrange-Act-Assert) philosophy with separate test blocks
  • Tests both SRD 5.1 and SRD 5.2 rulesets
  • Validates spell slot multiclassing math (full + floor(half/2) + floor(third/3))
  • Verifies proficiency bonus scaling
  • Checks mixed hit dice in multiclass characters

🤖 Generated with Claude Code

Add extensive backfill testing for the computeCharacter service covering:

**Full Casters (Wizard, Sorcerer, Cleric, Druid, Bard):**
- Spell slot progression at levels 1, 3, 5, 9, 10, 17
- Cantrip counts at different levels
- Hit dice verification
- Class-specific traits and abilities
- Spellcasting ability verification

**Half Casters (Paladin, Ranger):**
- Spell slot progression (starting at level 2)
- No cantrips verification
- Hit dice and class traits
- Max spell level checks

**Third Casters (Eldritch Knight, Arcane Trickster):**
- Subclass-dependent spellcasting
- Spell slots starting at level 3
- Cantrip counts
- Intelligence-based spellcasting
- Max spell level progression (up to 4th level)
- Champion Fighter as non-spellcasting control

**Warlock Pact Magic:**
- Separate pact magic slot system
- Slot progression at levels 1, 2, 5, 11, 17
- Verification of mystic arcanum traits
- Charisma-based spellcasting

**Non-Spellcaster Classes (Barbarian, Monk, Fighter, Rogue):**
- Hit dice verification (d12, d8, d10, d8)
- Class-specific traits (rage, ki, fighting style, sneak attack)
- Unarmored defense and other features

**Multiclassing Scenarios:**
- Full + Full (Wizard/Cleric, Sorcerer/Bard)
- Full + Half (Wizard/Paladin, Cleric/Ranger)
- Full + Third (Wizard/Eldritch Knight, Sorcerer/Arcane Trickster)
- Half + Half (Paladin/Ranger)
- Half + Third (Paladin/Eldritch Knight)
- Warlock + others (separate pact magic tracking)
- Triple multiclass (Wizard/Cleric/Bard)

**Key Test Features:**
- Uses scenario-based testing approach from createCharacter tests
- Follows AAA (Arrange-Act-Assert) philosophy with separate test blocks
- Tests both SRD 5.1 and SRD 5.2 rulesets
- Validates spell slot multiclassing math (full + floor(half/2) + floor(third/3))
- Verifies proficiency bonus scaling
- Checks mixed hit dice in multiclass characters

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

3 participants