|
|
3 жил өмнө | |
|---|---|---|
| .. | ||
| src | 4acd74974a Migrate deprecated usages and cleanup code | 3 жил өмнө |
| test | bb489601b7 Auto finding testing points | 4 жил өмнө |
| testers | 706e283218 Init dependencies of no-other-plugin-depended plugins first; fix #1965 | 3 жил өмнө |
| README.md | 97ce422b33 Update docs for console IT | 3 жил өмнө |
| build.gradle.kts | 35c08e8b16 Link mirai-core in console IT, fix non-hard-linked dependencies resolving | 3 жил өмнө |
Mirai Console 一体化测试单元 (目前仅内部测试)
TODO
创建一个新的子测试单元并继承 AbstractTestPoint
beforeConsoleStartup() 准备测试环境 (如写入配置文件, etc)onConsoleStartSuccessfully() 检查插件相关行为是否正确然后在 MiraiConsoleIntegrationTestLauncher.points 添加新单元的完整类路径
在 test/testpoints 添加新测试点,
然后在 MiraiConsoleIntegrationTestBootstrap.kt
添加相关单元
在 testers 创建新的文件夹, 刷新 Gradle 即可获得生成的 build.gradle.kts.
即可创建新的配套插件, 可用于测试插件依赖, etc
只有在修改 build.gradle.kts 后才需要将其添加 git, 其他情况下会自动生成.