Paper Plugin Guide
File mode0

Going further

Testing your plugin

Manual test plans, a test server routine and unit tests for plain logic.

Intermediate1 min read

This page is still being written.

What it will cover

  • Manual test checklist: fresh server, restart, two accounts, permissions on and off, console usage
  • run-paper workflow for fast tests; separate test worlds; resetting the run folder
  • Unit testing plain Java logic with JUnit 5 in Gradle (testImplementation, useJUnitPlatform) using a pure class like a Cooldowns or a MoneyFormatter; keep Bukkit out of unit-tested classes
  • MockBukkit: check whether a 26.x compatible version exists before recommending; if unsure, describe it as something to check
  • Testing with friends and logging what they did