1
Prerequisites
Before you begin, you need:
- Java 17 or higher
- Gradle 7 or higher
- Node.js (for running the test runner, can be downloaded automatically by using downloadNode setting)
- A Paper/Spigot plugin project
2
Installation
Add Plugwright to your If npm at your company goes through a private registry, add an Plugwright writes that to a gitignored
build.gradle.kts file:npm { } block now — the next step installs packages, and it will need it:.npmrc in the workspace before each install. See Configuration.3
Initialization
Run the init command to set up your test folder. It asks where to put it, then writes an npm project with a Everything a run generates — the compiled specs, the server the local environment starts — stays inside that directory, under
package.json, a TypeScript config, a .gitignore, an example spec and an example runner plugin:dist and generated. See Project Layout.4
Your First Test
Run your tests: