Skip to content

Add gametests#25

Draft
arconyx wants to merge 6 commits into
mainfrom
add-gametests
Draft

Add gametests#25
arconyx wants to merge 6 commits into
mainfrom
add-gametests

Conversation

@arconyx

@arconyx arconyx commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Time for better tests than me launching the game and bumbling about. Ideally we can test all the triggers we supply in a variety of situations.

Todo

  • Framework for imbuing hexes in tests
  • Making sure we can actually run hexes
  • Test imbuing
  • Test triggers
  • Test health interactions for chestplate (before/after damage is applied)
  • Test stack has right stuff added (how?)
  • Test media/durability interaction and limits (how are we getting overspends?)

@arconyx

arconyx commented Jun 3, 2026

Copy link
Copy Markdown
Owner Author

This is likely to break when we try to port to Fabric 1.21 and then Neoforge (#26) but I judge having a test suite to be worth the hassle. It should help ensure the ports actually work for one.

@arconyx
arconyx force-pushed the add-gametests branch 6 times, most recently from 529fa32 to 9d26bb5 Compare June 8, 2026 05:46
arconyx added 5 commits July 5, 2026 22:26
Client gametests are disabled as Fabric doesn't appear to support them
in 1.20.1. 1.20.4+ might work?

Had to switch the lockfile to lenient to make things behave. Is it just
utterly broken with Fabric?
This allows references items in tests and other code.
Old me kept using MutableLists for lists we didn't mutate.
Also removes the no-op example test
@arconyx
arconyx force-pushed the add-gametests branch 3 times, most recently from 2ec942f to 45fd1b4 Compare July 6, 2026 06:31
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