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
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
Is there any library existing for this?
Smth similar to playwright/jest type test
Setup "mock" then "expect" a returned value
MockBukkit
Link me up 😋
Mockbukkit
Mockbukkit | Home
MockBukkit is a framework for unit testing Bukkit plugins, offering versatile mock implementations for easy and effective automated plugin testing tools.
Tysm