Integration Test Framework for Paper!
MIT License
Integration Test Framework for Paper!
/test create <filename.testname> [width]
import {registry, EntityType} from "./minitestframework/index.mjs";
registry.register("test", (helper) => {
helper.pressButton(3, 3, 3);
helper.succeedWhenEntityPresent(EntityType.MINECART, 1, 2, 3);
});
/test pos
ingame to find relation locations/minitest reload
/test run*
commandsExample: https://streamable.com/e/k6kngh
When the plugin detects that the CI env var is set to true, it will automatically run all tests, write a test-results.xml (in junit format) and stop the server. If exit code > 0, then X number of required tests failed. If exit code < 0, then X number of optional test failed. Exit code = 0 means happy day :)
Best to hit me up on the paper discord: https://discord.gg/papermc
gradlew runServer
to test locally.
MIT