Skip to content

Fix Pathfinder csheet fixtures after Favored Class Bonus visibility change#7659

Merged
LegacyKing merged 1 commit into
PCGen:masterfrom
Vest:fix-favored-class-csheets
Jul 4, 2026
Merged

Fix Pathfinder csheet fixtures after Favored Class Bonus visibility change#7659
LegacyKing merged 1 commit into
PCGen:masterfrom
Vest:fix-favored-class-csheets

Conversation

@Vest

@Vest Vest commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Fixes the Pathfinder inttest failures on master (Cleric / Paladin / Rogue) introduced by #7658.

What broke

Commit 1439ee6 (PR #7658, issue #7478) is a legitimate data fix — it makes Favored Class Bonuses display on the character sheet, as the user requested. In data/pathfinder/paizo/roleplaying_game/core_rulebook/cr_abilities_class.lst it:

  • drops VISIBLE:DISPLAY from Bonus Hit Point and Bonus Skill Rank (i.e. DISPLAY_ONLYDEFAULT, so those abilities now appear in exports as well as in the GUI), and
  • adds .SpecialQuality to their TYPE.

What the PR didn't touch is the character-sheet integration-test fixtures. So on master, pcGenGUIPfrpgClericTest, pcGenGUIPfrpgPaladinTest, and pcGenGUIPfrpgRogueTest all fail with:

Expected text value 'Channel Positive Energy' but was 'Bonus Hit Point'
Expected text value 'Brigand' but was 'Bonus Hit Point (6x)'
Expected text value 'Celestial Spirit' but was 'Bonus Skill Rank (Diplomacy, Diplomacy, Diplomacy, Diplomacy)'

The <ability_object> blocks for the Favored Class Bonuses correctly moved from the "Hidden Normal" section to the "Visible Normal Special Ability" section in the produced XML, but the expected XMLs still had them at the bottom with the old type.

Fix

Regenerated the three csheet fixtures from the actual test output so they reflect the new correct behaviour:

  • pf_Cleric.xml, pf_Paladin.xml, pf_Rogue.xml
  • moved the Favored Class Bonus <ability_object> entries from the Hidden section to the Visible Normal Special Ability section,
  • updated <type> from FAVOREDCLASSBONUS to FAVOREDCLASSBONUS.SPECIALQUALITY,
  • flipped <hidden>T</hidden> to <hidden>F</hidden>.

Nothing else changed in the XMLs.

Verified locally

  • ./gradlew slowtest --tests …pcGenGUIPfrpgClericTest --tests …PaladinTest --tests …RogueTest --rerun-tasks → all 3 pass
  • ./gradlew pfinttest --rerun-tasks (full Pathfinder inttest suite) → BUILD SUCCESSFUL
  • ./gradlew slowtest --rerun-tasks (all 5 game modes + data tests) → BUILD SUCCESSFUL in 7m 25s

…hange

The Pathfinder Cleric/Paladin/Rogue integration tests started failing on
master after 1439ee6 (PR PCGen#7658, issue PCGen#7478) made Favored Class
Bonuses render on the character sheet: the LST change was correct, but
the three csheet fixtures were not updated to match the new output.

In cr_abilities_class.lst, PR PCGen#7658:
  - dropped VISIBLE:DISPLAY (DISPLAY_ONLY -> DEFAULT, so the abilities
    now export as well as show in the GUI)
  - added .SpecialQuality to the TYPE

That moves the Bonus Hit Point / Bonus Skill Rank <ability_object>
entries from the 'Hidden Normal' block to the 'Visible Normal Special
Ability' block in the XML export, and changes their <type> from
FAVOREDCLASSBONUS to FAVOREDCLASSBONUS.SPECIALQUALITY. Regenerated the
three fixtures from the actual test output so the diff now compares
clean.

Verified with pfinttest and the full slowtest suite (all game modes +
data tests) locally.
@Vest

Vest commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

@LegacyKing you can accept the PR.

@LegacyKing LegacyKing merged commit 066b9ae into PCGen:master Jul 4, 2026
4 checks passed
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

🚧 PCGen Code Coverage

Overall Project 25.8%

There is no coverage information present for the Files changed

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