mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-26 17:46:25 -05:00
fe42ded042
* First proof of concept pass
* Cleanup and fixes.
* Checkstyle
* Fix running.
* Updated
* Fix build
* Cleanup + fixes.
* Fix package
* and test package
* game-test -> gametest
* Fix exclusion
* Review feedback and fixes.
* Remove comment
* Review feedback.
* Don't set the game instance
* Fix
* Work around shadowed fields from super classes not getting remapped... dejavu anyone?
See: 2e359e933a (diff-0956caa3cd38a54f5910979f0cfd98198a93e4d585e111300f2f7ab7301ad122)
* Add mixin to exit with a non-zero exit code in case the test server fails to start.
* Enable JUnit XML report generation.
Co-authored-by: Sebastian Hartte <sebastian@hartte.de>
24 lines
496 B
Groovy
24 lines
496 B
Groovy
archivesBaseName = "fabric-gametest-api-v1"
|
|
version = getSubprojectVersion(project, "1.0.0")
|
|
|
|
moduleDependencies(project, [
|
|
'fabric-api-base',
|
|
'fabric-resource-loader-v0'
|
|
])
|
|
|
|
loom {
|
|
runs {
|
|
gametest {
|
|
server()
|
|
name "Game Test"
|
|
vmArg "-Dfabric-api.gametest"
|
|
vmArg "-Dfabric-api.gametest.report-file=${project.buildDir}/junit.xml"
|
|
runDir "build/gametest"
|
|
|
|
// Specific to fabric api
|
|
source sourceSets.testmod
|
|
ideConfigGenerated true
|
|
}
|
|
}
|
|
}
|
|
test.dependsOn runGametest
|