Skip to content

chore: refactor launch tests#31

Closed
dsnsgithub wants to merge 7 commits into
mainfrom
claude/consolidate-gametest-codebase-o6q6t7
Closed

chore: refactor launch tests#31
dsnsgithub wants to merge 7 commits into
mainfrom
claude/consolidate-gametest-codebase-o6q6t7

Conversation

@dsnsgithub

@dsnsgithub dsnsgithub commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Remove redundant launch tests and remove AI slop from the testing framework.

The launch tests previously shipped three test-driver flavours (modern
gametest, legacy gametest with a near-identical copied source file, and a
pre-gametest fallback). Replace them with the single fallback-style driver
for every supported Minecraft version: the client joins a pre-generated
survival world via --quickPlaySingleplayer, screenshots the HUD, and exits.

One source file now compiles and runs against 1.21-26.2:
- the auto-named Screenshot.grab overload is the only one whose signature
  is stable across all versions, so the driver renames its output instead
  of naming it up front
- Minecraft.getMainRenderTarget() moved to GameRenderer in 26.2, so the
  accessor is resolved by name at runtime (Mojang name on unobfuscated
  26.x, version-stable intermediary name on obfuscated 1.21.x)

Every Minecraft symbol the driver uses was verified against the official
Mojang mappings of all 12 obfuscated versions, and the source was compiled
directly against the unobfuscated 26.1 and 26.2 client jars.

This removes the clientGametest split everywhere: the fabric client
gametest dependency and jvm args, the per-flavour source-set selection,
the conditional pregen_world CI matrix field, and the title-screen
screenshots (only the survival screenshots feed the PR report).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FpvdqYScz6nusUf9qioyg9
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

BetterHUD Launch Screenshots

1.21
BetterHUD on Minecraft 1.21
1.21.1
BetterHUD on Minecraft 1.21.1
1.21.2
BetterHUD on Minecraft 1.21.2
1.21.3
BetterHUD on Minecraft 1.21.3
1.21.4
BetterHUD on Minecraft 1.21.4
1.21.5
BetterHUD on Minecraft 1.21.5
1.21.6
BetterHUD on Minecraft 1.21.6
1.21.7
BetterHUD on Minecraft 1.21.7
1.21.8
BetterHUD on Minecraft 1.21.8
1.21.9
BetterHUD on Minecraft 1.21.9
1.21.10
BetterHUD on Minecraft 1.21.10
1.21.11
BetterHUD on Minecraft 1.21.11
26.1
BetterHUD on Minecraft 26.1
26.1.1
BetterHUD on Minecraft 26.1.1
26.1.2
BetterHUD on Minecraft 26.1.2
26.2
BetterHUD on Minecraft 26.2

supported-versions.json is gone. The versions/ folder is now the single
source of truth: CI expands each variant's mc_dep range against Mojang's
version manifest to enumerate the Minecraft versions to build, launch-test,
and publish for, so new patch releases are picked up with no repo change.

The launch test resolves the latest Fabric API, Mod Menu, and Cloth Config
releases for the tested Minecraft version from the Modrinth API at
dependency-resolution time — the same versions a launcher would install —
instead of hardcoding them per version. Verified to reproduce the
previously pinned versions exactly.

The launchtest project moves to src/launchtest since it is source code,
and all comments outside src/main/java are removed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FpvdqYScz6nusUf9qioyg9
@dsnsgithub dsnsgithub changed the title Unify launch test to single implementation for all MC versions chore: refactor launch tests Jul 8, 2026
@dsnsgithub dsnsgithub closed this Jul 8, 2026
@dsnsgithub dsnsgithub reopened this Jul 8, 2026
@dsnsgithub dsnsgithub marked this pull request as draft July 8, 2026 05:53
@dsnsgithub dsnsgithub closed this Jul 8, 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.

2 participants