类 SelfTest
java.lang.Object
net.neoforged.neoforge.common.util.SelfTest
We use a "self-test" to launch a client and dedicated server from within our CI and exit.
This allows us to do an "end-to-end" test that actually uses the installer we produce to
install a client无效输入:'&server' and test it.
The self-test writes a file so that the build script can detect that the game actually
loaded up enough to start ticking the game loop.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
static void
writeSelfTestReport
(String path) This is used by our GitHub Actions pipeline to run an E2E test for PRs.
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
构造器详细资料
-
SelfTest
private SelfTest()
-
-
方法详细资料
-
initCommon
public static void initCommon() -
writeSelfTestReport
This is used by our GitHub Actions pipeline to run an E2E test for PRs. It writes a small self-test report to the file indicated by the system property and exits.
-