Closed JustPyrrha closed 8 months ago
You're supposed to create a new QMJ file in the separate source set as if it was a new mod (like it is done in QSL).
ah that makes more sense, though the separate qmj isn't mentioned in the javadocs so that might be worth updating.
* <p>
* <h3>Get Started</h3>
* Writing tests for your mod is relatively simple: create a new class that extends {@link org.quiltmc.qsl.testing.api.game.QuiltGameTest}, and add it
* as an entrypoint of key {@value org.quiltmc.qsl.testing.api.game.QuiltGameTest#ENTRYPOINT_KEY}.
* <p>
When separating gametest code into its own source set, as the javadocs suggest, the testing library still trys to load the gametest entrypoint during regular runs causing a crash.
Expected Behaviour
The testing library only attempts to load
quilt:game_test
entrypoints when thequilt.game_test
property is set totrue
.Actual Behaviour
The testing library always trys to load
quilt:game_test
entrypoints during its owninit
entrypoint without checking if its a testing run.Replication Steps
Tested in both dev and prod environments. Dev using the above project with only qsl_base and testing (
6.1.2+1.20.1
), and prod using the above project and the latest qsl from modrinth (7.4.0+0.90.0-1.20.1
).