SinTh0r4s / ExampleMod1.7.10

An example mod for Minecraft 1.7.10 with Forge focussed on a stable setup.
MIT License
26 stars 91 forks source link

[CI] Basic smoke test #15

Open TheElan opened 2 years ago

TheElan commented 2 years ago

It would be nice to test if MC at least starts and loads world correctly with your changes. There is a libs which allow integration tests.

The proposition is as follows:

  1. Add MinecraftJUnit library as a default dependency to the mod dependencies list (or any better lib with similar functionality)
  2. Implement smoke tests which check if server starts up correctly and world is able to load
  3. Add CI workflow which runs said tests.
  4. Add junit report collection to workflow (junit should output a xml report in build), you could use action-junit-report for this (chosen arbitrary as a first link in the search)
TheElan commented 2 years ago

https://github.com/SinTh0r4s/ExampleMod1.7.10/pull/24 should add a server starter smoke test (although it isn't testing obfuscation)