MinecraftTAS / TASmod

Minecraft Tool-Assisted Speedrun (TAS) Tools with input playback
https://discord.gg/jGhNxpd
GNU General Public License v3.0
30 stars 5 forks source link

Add unit testing #159

Closed ScribbleTAS closed 5 months ago

ScribbleTAS commented 1 year ago

I know Unit Testing in a Minecraft environment seems odd, but I am confident that at least some classes can be tested.
When we switch to Legacy Fabric and refactor the code, we may use unit testing to seperate the code even further.
Right now the code is referencing all sorts of places in order to make things work, a clear separation should make things easier.

Come to think of it, wouldn't TASmod be the ideal Unit Testing framework? You can record stuff ingame, then check if they desync or not... Would be somewhat slow, but that would work would it?

ScribbleTAS commented 9 months ago

Looking into making a testing mod that launches with MC and can load up TASmod files... Might become a really interesting integration testing mod

ScribbleTAS commented 5 months ago

Maybe some other tool will come around, but for now the current system will do...