Repository navigation
test: 宿主端到端测试和功能矩阵移到插件仓库 - #18
Merged
Merged
Conversation
主仓库按 1lck/Lithe-IDEA#1915 不再保存插件的测试和功能矩阵条目,这里接收 Maven 插件的部分: - e2e/host/ 放 TestOfficialMavenPluginBuildsAReactor(含辅助函数)和新建项目测试 maven_integration_test.go,scripts/e2e-host.mjs 把 lithe-host.json 固定的宿主版本 检出到 .artifacts/lithe-host 后运行 - docs/feature-matrix.md 迁移 6 个条目并按 0.0.1 重写,新增 maven-project-generators - README 说明运行方式和功能矩阵位置
xiaoyumuxi
marked this pull request as ready for review
November 14, 2026 16:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联:1lck/Lithe-IDEA#1915(插件的测试、功能矩阵和翻译只在插件仓库,宿主零依赖)
改动
主仓库在 #1915 删掉了 Maven 插件的宿主端到端测试和 6 个功能矩阵条目。这个 PR 把它们接到插件仓库:
宿主端到端测试
e2e/host/desktop/internal/workbench/official_maven_plugin_e2e_test.go:来源是主仓库desktop/internal/workbench/official_plugins_e2e_test.go(1lck/Lithe-IDEA@b582e206a)里的TestOfficialMavenPluginBuildsAReactor和它用到的辅助函数(安装插件包、安装目录摘要、等构建模型、跑任务、改插件设置)。只把writeFixture改名为writePluginFixture(宿主同一个包里现在有同名函数),测试逻辑没改。e2e/host/desktop/internal/projectgen/maven_integration_test.go:主仓库同路径文件原样搬来,覆盖清单里maven-java和maven-archetype两个新建项目条目。运行脚本
scripts/e2e-host.mjs和宿主版本固定文件e2e/host/lithe-host.json059d878d4)稀疏检出到.artifacts/lithe-host(只取desktop/和scripts/),复制测试,再对两个包分别运行宿主的scripts/desktop/desktop-go.sh test。LITHE_PLUGIN_MAVEN_DIR默认指向本仓库的io.github.lithe-idea.maven-build/,所以新建项目测试测的是当前分支的清单和模板。功能矩阵
docs/feature-matrix.md:迁入 6 个条目,并新增一条记录随测试迁来的新建项目能力。原条目写的都是旧 Swift 宿主和旧 Maven 后端的实现,已按当前插件 0.0.1(声明式,没有后端)和宿主059d878d4重写。java-maven-projectjava-maven-profiles-dependenciesjava-maven-project-settingsjava-maven-settings-reach-jdtlanguageImport.settings收集 JDT 设置,0.0.1 没有后端,无法应答java-maven-toolbar-tooltipsmaven-user-settings-editingsettings.xml编辑,Local Repository 选项只传-Dmaven.repo.localmaven-project-generators(新增)Windows 全部是 missing:插件只发布 darwin 包。
README 开发目录表加上新文件,增加“宿主端到端测试”“功能矩阵”两节。
没有迁移的内容
主仓库 #1915 还删了
docs/ci-builds.md和scripts/resources/里关于 Maven 插件运行时资源的说明(execution-*报告快照、configuration-*/repository探测、BuildSystems.Migrations.Maven.*迁移偏好)。这些都是旧 Maven 后端的行为,0.0.1 没有,README“工作方式”一节已经写了当前唯一的运行时文件(Lithe 在插件状态目录分配、Maven 退出后删除的模型和依赖文件),所以没有搬过来。JDT-data/.lithe/maven/的设置副本属于 Java Support。没有改 CI:这些测试要 Go、Rust 工具链、
mvn,原型测试还要联网,和在主仓库时一样手动运行。验证
2026-11-14,macOS arm64,插件 v0.0.1 发布包,从空的
.artifacts/lithe-host开始(检出宿主、构建 Core):TestOfficialMavenPluginBuildsAReactorPASS(8.76s)TestMavenPluginProjectGeneratesABuildableMavenProjectPASS(0.60s)TestMavenPluginArchetypeRunsRealMavenPASS(13.07s,真实mvn archetype:generate)gofmt -l e2e/无输出;node scripts/package.mjs正常,包里不含e2e/和docs/。评审注意
lithe-host.json的revision时,宿主测试工具(newHarness、awaitStateWithin等)的改动可能要求同步修改测试。java-maven-settings-reach-jdt和maven-user-settings-editing标 missing 是如实记录 0.0.1 的状态;要补上需要给插件加后端,这个 PR 不做。