Client Runtime Interface Toolkit ๐Ÿ› ๏ธ: Automated UI Testing for Minecraft

Client Runtime Interface Toolkit ๐Ÿ› ๏ธ automates Minecraft client UI tests with JUnit 5, screenshots and layout checks for Minecraft. Start testing today!

Client Runtime Interface Toolkit ๐Ÿ› ๏ธ

If you have ever built a configuration screen with dozens of tabs, buttons and checkboxes, you know the pain of clicking through all of them after every single change. The Client Runtime Interface Toolkit ๐Ÿ› ๏ธ is a test framework library for Minecraft mods that solves exactly that problem. It integrates with JUnit 5 and drives a real Minecraft client: it opens screens, clicks buttons, checks what is rendered and captures screenshots along the way. Instead of manually verifying your UI, your tests do the walking and report back in seconds.

Why This Toolkit Exists

The library was born out of frustration. Its author maintains the configuration UI of Easy NPC, which contains roughly 500 UI elements across screens, tabs, buttons and options. After every change, most of them had to be clicked by hand, which took hours. Unit tests and game tests run without a client, so they never see a screen, a button or a rendered NPC. This toolkit closes that gap by testing single buttons, widgets and NPCs one by one, and it immediately shows when something breaks.

What Makes It Different

This is not a cheat, bot or AI tool. It is not built for auto farming, AFK bots or gaining any advantage on other people's servers. It is a test framework, nothing else, and it is designed with safety in mind:

  • It works only on your own computer (127.0.0.1), protected by a secret that changes on every start.
  • The client always shows on screen when it can be controlled.
  • The player can disconnect it at any time with the Pause key or the "Disconnect toolkit" option in the pause menu, and it stays off until Minecraft is restarted.
  • On multiplayer servers, toolkit input is refused unless that server also runs the toolkit and its operator has allowed you.

Core Features at a Glance

Reading and Interacting

Tests can read the open screen with all its widgets, the player, the inventory, the world and nearby entities. You click, hover and type by widget translation key instead of pixel coordinates, so the same test works in every language. By.text("Options...") also works, but only in English.

Assertions and Layout Checks

You can wait for and assert on the client state, including a layout check that flags widgets which overlap, stick out of the screen or display untranslated text. Screenshots carry the suite, test and version information in the PNG metadata, never the overlay.

Configuration Profiles

Settings live in config/client_runtime_interface_toolkit/toolkit.properties. The key option is runtime_profile: attended for normal play with a person in front of the client, test for unattended low-volume runs, movie for watchable full-volume runs, observer for read-only vanilla behavior, and custom to take every option from the file. Setting control_access=none turns every kind of control off.

Supported Versions and Loaders

The toolkit is distributed as a Fabric mod, with the 1.20.1 build being the reference example in its documentation. It targets modern Minecraft versions, so check the project page for the exact builds that match your modding setup before you download Client Runtime Interface Toolkit ๐Ÿ› ๏ธ. Keeping the library version aligned with your Minecraft version avoids mismatched test behavior.

If you want a frictionless setup, the foxygame.net launcher handles the entire add-on catalog for you, including one-click installation of Client Runtime Interface Toolkit ๐Ÿ› ๏ธ with automatic updates whenever a new build appears.

How to Install and Write Your First Test

Adding the library to a Fabric project is straightforward. Declare it as a test dependency in your build file, then write a test class that registers the game client extension and launches a client window at a fixed size. A typical first test opens the options screen, asserts that the video settings button is present, runs the layout check and saves a screenshot to the .client_test/screenshots folder. The test runner inside the jar does nothing unless a test starts it, so it is completely inert during normal play.

If you are wondering how to install it in a development environment, the steps are simple:

  • Add the test dependency to your Gradle configuration for the matching Fabric and Minecraft version.
  • Create a JUnit 5 test class with the game client extension registered.
  • Launch the client, click through screens by translation key and assert on the expected state.
  • Run the suite from your IDE or build pipeline and review the generated screenshots.

Final Thoughts

The Client Runtime Interface Toolkit ๐Ÿ› ๏ธ is still in beta, so treat it as ready to try but use it at your own risk, with more features on the way. For mod developers who maintain large configuration UIs, it replaces hours of manual clicking with fast, repeatable automated checks. If you want reliable Client Runtime Interface Toolkit ๐Ÿ› ๏ธ for Minecraft UI testing, this library is a practical addition to any Fabric development workflow.