|
|
vor 3 Jahren | |
|---|---|---|
| .. | ||
| src | a3f9755e8e [console] Disable network log in testing | vor 3 Jahren |
| test | 62ae2ac03c [console] Create PluginOnDisableCalledOnlyOnceTest test; Fix tests | vor 3 Jahren |
| testers | 4f0f733f4d 修复JvmPlugin无法通过自己的classLoader以getResource的方法获取全局依赖的class文件 (#2536) | vor 3 Jahren |
| README.md | 97ce422b33 Update docs for console IT | vor 3 Jahren |
| build.gradle.kts | 500ad3cc9e Fix console integration test | vor 3 Jahren |
Mirai Console 一体化测试单元 (目前仅内部测试)
TODO
创建一个新的子测试单元并继承 AbstractTestPoint
beforeConsoleStartup() 准备测试环境 (如写入配置文件, etc)onConsoleStartSuccessfully() 检查插件相关行为是否正确然后在 MiraiConsoleIntegrationTestLauncher.points 添加新单元的完整类路径
在 test/testpoints 添加新测试点,
然后在 MiraiConsoleIntegrationTestBootstrap.kt
添加相关单元
在 testers 创建新的文件夹, 刷新 Gradle 即可获得生成的 build.gradle.kts.
即可创建新的配套插件, 可用于测试插件依赖, etc
只有在修改 build.gradle.kts 后才需要将其添加 git, 其他情况下会自动生成.