MockBukkit VS WatchWolf | |
---|---|
MockBukkit is a framework that makes the unit testing of Bukkit plugins a whole lot easier. | WatchWolf is an integration testing environment for Spigot plugins. |
Start time | |
JavaPlugin changes | |
Just by providing an extra constructor (ref) you're good to go. |
WatchWolf uses the already compiled plugin, so you don't have to change anything. |
Installation | |
|
To run the tests you'll need a Maven dependency, but as you have to start an actual server you'll also need a WatchWolf instance. |
Additional configutation | |
|
You'll have to specify the server types and versions where you want to test your plugin. Also, you'll have to specify how many users you need for the tests. (ref). |
Test comparisonI've provided a basic plugin example here, the idea is that you can run a command to undo the last block you've placed. | |
|
|
Conclusions | |
Due to all the methods available and its speed, MockBukkit is perfect to quickly test your newly added features. | By actually starting a server you can test your plugin before releasing it, so you make sure it works in all the versions and server types. Also, in a future version you'll be able to test database-dependent plugins. |