Skip to content

Comments

Add unit tests for Issue subtype toString implementations#233

Closed
ogolberg wants to merge 4 commits intomainfrom
add-issue-tostring-unit-tests
Closed

Add unit tests for Issue subtype toString implementations#233
ogolberg wants to merge 4 commits intomainfrom
add-issue-tostring-unit-tests

Conversation

@ogolberg
Copy link
Member

@ogolberg ogolberg commented Feb 15, 2026

Summary

  • Adds dedicated unit tests for each Issue subtype's toString() method in IssueToStringTest
  • Covers singular and plural variations for MissingApplicationSuperType, FinalApplicationSuperType, and MissingSuperType (which use the .readable extension)
  • Tests the MemberAccess.description() "via" variant when declaring type differs from target type
  • Removes the redundant toString assertions from ExpediterIntegrationTest

Test plan

  • All 16 new tests pass via ./gradlew :model:test --tests "com.toasttab.expediter.issue.IssueToStringTest"
  • ExpediterIntegrationTest still passes after removing the toString block
  • spotlessCheck passes for both :model and :tests

🤖 Generated with Claude Code

Extract toString assertions from ExpediterIntegrationTest into dedicated
unit tests covering each Issue subtype, including singular/plural
variations for the .readable extension function.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Feb 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.38%. Comparing base (1b7337a) to head (cceaee7).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #233      +/-   ##
============================================
+ Coverage     87.80%   88.38%   +0.58%     
  Complexity      287      287              
============================================
  Files            43       43              
  Lines          1033     1033              
  Branches        155      155              
============================================
+ Hits            907      913       +6     
+ Misses           66       61       -5     
+ Partials         60       59       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

ogolberg and others added 3 commits February 15, 2026 10:20
These are now covered by the dedicated IssueToStringTest.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ogolberg ogolberg closed this Feb 16, 2026
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