A
Admincraft•4w ago
Ashank

Unit testing plugin functionality programmatically

I want to write tests for my plugins so I don't have to do it in game For example, I have a function that turns every block broken into diamond blocks I want to somehow simulate the player breaking a block, then check the blockdata at the coordinate where the block was broken.
6 Replies
Admincraft Meta
Admincraft Meta•4w ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by ashanki#0
Ashank
AshankOP•4w ago
Is there any library existing for this? Smth similar to playwright/jest type test Setup "mock" then "expect" a returned value
Skullians
Skullians•4w ago
MockBukkit
Ashank
AshankOP•4w ago
Link me up 😋
Skullians
Skullians•4w ago
Mockbukkit
Mockbukkit | Home
MockBukkit is a framework for unit testing Bukkit plugins, offering versatile mock implementations for easy and effective automated plugin testing tools.
Ashank
AshankOP•4w ago
Tysm

Did you find this page helpful?