Skip to main content

Step 1: Add the dependency

Step 2: Write a test class

Create a new file anywhere in your mod’s source:

Step 3: Build your mod

Your test classes compile into your mod JAR alongside your regular code.

Step 4: Install and run

  1. Place your mod JAR in your server’s mods folder
    • Singleplayer: %APPDATA%\Hytale\UserData\Mods\
    • Dedicated server: <your-server-root>/mods/
  2. Place HRTK.jar in the same mods folder
  3. Start the server
  4. Run /hrtk run

Expected output

Next steps

Test Suites

Organize tests with @HytaleSuite and isolation strategies

Testing Surfaces

Explore all 12 testable surfaces: ECS, events, combat, stats, and more

Flow Tests

Write multi-step integration tests: spawn, damage, kill, verify loot

All Annotations

Reference for all 24 test annotations