Files
RemoteCompilation/plugin/src/test/kotlin/studio/tongtong/remotecompile/ApkNotificationsTest.kt
T
tongtong 6f9cc7e7ea feat: 增加独立构建工作区、服务端ADB与私有文件清单
支持Git提交导入及未提交源码叠加,APK原名下载和完成通知。新增服务端设备安装与按工程维护的私有文件清单,修复Wrapper预检查、布局及IDE读锁和保存状态问题。更新协议、测试和部署记录;服务端0.7.0,插件0.7.1。
2026-11-27 11:04:58 +08:00

23 lines
874 B
Kotlin

package studio.tongtong.remotecompile
import org.junit.Assert.*
import org.junit.Test
class ApkNotificationsTest {
@Test fun describesRootAndModuleVariants() {
val root = ApkNotifications.description("酷比桌面", ":assembleAospWithoutQuickstepTDT65Release")
assertTrue(root.contains("酷比桌面.main"))
assertTrue(root.contains("aospWithoutQuickstepTDT65Release"))
val app = ApkNotifications.description("Project", ":app:assembleUiuiDebug")
assertTrue(app.contains("Project.app"))
assertTrue(app.contains("uiuiDebug"))
assertTrue(app.contains("locate or analyze"))
}
@Test fun escapesNotificationHtml() {
val text = ApkNotifications.description("<project&>", ":assembleDebug")
assertFalse(text.contains("<project"))
assertTrue(text.contains("&lt;project&amp;&gt;"))
}
}