TASmod icon indicating copy to clipboard operation
TASmod copied to clipboard

Add unit testing

Open ScribbleTAS opened this issue 2 years ago • 1 comments

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 avatar Apr 26 '23 15:04 ScribbleTAS

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 avatar Jan 02 '24 21:01 ScribbleTAS

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

ScribbleTAS avatar May 23 '24 20:05 ScribbleTAS