Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new test harness artifact and fix tests #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LexManos
Copy link
Member

@LexManos LexManos commented Jan 27, 2025

Paint's recent cleanup caused NPE's in the old test setup. Which made the old tests not run.
So fixed Launcher not getting correct version information when not in a SecureModuleClassLoader
I changed the root project name to be "modlauncher" to match the casing we publish the artifact as, just for consistancy.
Functionally that's the only change for ModLauncher itself, besides one cleanup in TransfromerList.

I created a new test harness artifact 'net.minecraftforge:modlauncher-harness' which should simplify the existing test structure in other projects that need to work with transformed states. It also has a couple of small helper classes aimed at test makers.

I have also cleaned up/re-written all the tests to use this new harness so there are plenty of examples.
Removed a bunch of tests that actually weren't testing anything.

It's basically an enhanced version of my CoreMods test framework published as a reusable artifact.
This did show me a lot of gradle and other cleanups that could be done on this project but that is not the point of this PR.

Also, ideally this would be a subproject build using the new system @Jonathing has been working on. So that the harness gets its own version number.

Fix Launcher not getting correct version information when not in a SecureModuleClassLoader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant