-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Update dependencies and make tests work #71
Conversation
Fixes gradle cache Rework test framework to actually test things
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done some review on my phone and left some notes to revisit later. Overall looks good!
coremods-test/src/test/java/net/minecraftforge/coremod/test/JSFileLoader.java
Outdated
Show resolved
Hide resolved
coremods-test-jar/src/main/java/net/minecraftforge/coremod/testjar/Counter.java
Outdated
Show resolved
Hide resolved
coremods-test/src/test/java/net/minecraftforge/coremod/test/TestLaunchTransformerBase.java
Outdated
Show resolved
Hide resolved
import cpw.mods.modlauncher.api.ITransformationService; | ||
import cpw.mods.modlauncher.api.ITransformer; | ||
import cpw.mods.modlauncher.api.IncompatibleEnvironmentException; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.nio.file.FileSystems; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
import java.util.Set; | ||
|
||
public class TestTransformerService implements ITransformationService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should look into bundling this with ModLauncher
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should but I don't want it exposed at runtime as it's fairly powerful api. So probably a test harness sub project
@@ -25,7 +26,7 @@ repositories { | |||
} | |||
|
|||
changelog { | |||
fromTag "1.0.0" | |||
from '1.0.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Todo: investigate a bouncer method in GradleUtils to undo this breaking change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
coremods-test/src/test/java/net/minecraftforge/coremod/test/TestLaunchTransformerBase.java
Show resolved
Hide resolved
coremods-test/src/test/java/net/minecraftforge/coremod/test/TestLaunchTransformerBase.java
Outdated
Show resolved
Hide resolved
Paint suggested a lot of code sanity changes, so I will wait for those to be applied before I start testing thoroughly. Everything looks good so far, and I actually have a framework to test raw ASM with, so thank you. |
Update GradleUtils which allows us to re-enable configuration cache.
Update Gradle wrapper, junit deps. and a few others
Rewrote the junit test project to actually load things into a transformed context and verify the coremods actually applied.