remmintan / minefortress

a Minecraft mod that will turn your Minecraft into a real-time strategy
https://minecraftfortress.org/
MIT License
154 stars 14 forks source link

Introduce test framework for the mod. Suggestions wanted #11

Open remmintan opened 5 months ago

remmintan commented 5 months ago

There are no test frameworks in the mod, and every change introduces many regressions.

I am looking for suggestions on how to restructure the mod and which types of tests to introduce to cover the mod codebase with test cases and reduce the number of regressions.

This is an open discussion. I would greatly appreciate any help.

andr9528 commented 5 months ago

Just a suggestion, enable the 'Discussion' tab on this repository from the settings page. :) This issue would fit well under there. Sadly i don't know how many check the Discussion tab, when it is there, as so few repositories makes good use of it. Perhabs this one can become an exception :)

walksanatora commented 5 months ago

minecraft has it's own framework called gametest where it lays out basically every test in one world and runs them in parallel

remmintan commented 4 months ago

I will try the game test framework, and will at least try to find some info about it. Thanks!

walksanatora commented 4 months ago

if you want (even though your mod is fabric) forge has some decent docs on it I also was working on gametest for hexcasting the key points are setting the entrypoint and the gametest class

walksanatora commented 4 months ago

and then throw structures in data/<modid>/gametest/structures (and pass -Dfabric-api.gametest as launch args to get /test in game, reccomment creating a superflat world)