Title: test: 宿主端到端测试和功能矩阵移到插件仓库 by xiaoyumuxi · Pull Request #18 · Lithe-IDEA/lithe-plugin-maven · GitHub
Open Graph Title: test: 宿主端到端测试和功能矩阵移到插件仓库 by xiaoyumuxi · Pull Request #18 · Lithe-IDEA/lithe-plugin-maven
X Title: test: 宿主端到端测试和功能矩阵移到插件仓库 by xiaoyumuxi · Pull Request #18 · Lithe-IDEA/lithe-plugin-maven
Description: 关联: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.json
测试用的是宿主内部(未导出)的测试工具,只能在宿主的包里编译。脚本把固定的宿主 commit(059d878d4)稀疏检出到 .artifacts/lithe-host(只取 desktop/ 和 scripts/),复制测试,再对两个包分别运行宿主的 scripts/desktop/desktop-go.sh test。
LITHE_PLUGIN_MAVEN_DIR 默认指向本仓库的 io.github.lithe-idea.maven-build/,所以新建项目测试测的是当前分支的清单和模板。
主仓库不读取插件仓库,依赖方向是插件 → 宿主的某个固定 commit。
脚本与 Lithe-IDEA/lithe-plugin-go#5、Lithe-IDEA/lithe-plugin-lldb#5 中的是同一份。
功能矩阵 docs/feature-matrix.md:迁入 6 个条目,并新增一条记录随测试迁来的新建项目能力。原条目写的都是旧 Swift 宿主和旧 Maven 后端的实现,已按当前插件 0.0.1(声明式,没有后端)和宿主 059d878d4 重写。
ID
macOS
说明
java-maven-project
implemented / pending
自动化测试通过,没有做手工验收
java-maven-profiles-dependencies
implemented / pending
JDT 依赖快照那一半属于 Java Support,不写在这里
java-maven-project-settings
partial / pending
构建选项按工作区保存,不能按子项目设置
java-maven-settings-reach-jdt
missing
Java Support 1.2.0 通过插件函数 languageImport.settings 收集 JDT 设置,0.0.1 没有后端,无法应答
java-maven-toolbar-tooltips
implemented / pending
没有自动化覆盖
maven-user-settings-editing
missing
0.0.1 没有 settings.xml 编辑,Local Repository 选项只传 -Dmaven.repo.local
maven-project-generators(新增)
implemented / pending
新建项目测试通过
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):
LITHE_TEST_MAVEN_PLUGIN_ARCHIVE=
Open Graph Description: 关联:1lck/Lithe-IDEA#1915(插件的测试、功能矩阵和翻译只在插件仓库,宿主零依赖) 改动 主仓库在 #1915 删掉了 Maven 插件的宿主端到端测试和 6 个功能矩阵条目。这个 PR 把它们接到插件仓库: 宿主端到端测试 e2e/host/desktop/internal/workbench/official_maven_plugin_e2e_test.go:来源...
X Description: 关联:1lck/Lithe-IDEA#1915(插件的测试、功能矩阵和翻译只在插件仓库,宿主零依赖) 改动 主仓库在 #1915 删掉了 Maven 插件的宿主端到端测试和 6 个功能矩阵条目。这个 PR 把它们接到插件仓库: 宿主端到端测试 e2e/host/desktop/internal/workbench/official_maven_plugin_e2e_test.go:来源...
Opengraph URL: https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/18
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ef716089-d9b6-e3d2-22b7-4b854dabd589 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AD3A:72507:248687:327845:6B07439B |
| html-safe-nonce | a34fc16f8779f36075447ec856363418288d38293fef07c7ac7703526a773589 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDNBOjcyNTA3OjI0ODY4NzozMjc4NDU6NkIwNzQzOUIiLCJ2aXNpdG9yX2lkIjoiNzgzNTkyOTk4NjY0ODcyMDI4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6bba3fd403fe7964bce259f88349e99fcdafa167d0f698b34cf51eb6de73dfb2 |
| hovercard-subject-tag | pull_request:5310996619 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/18/files |
| twitter:image | https://avatars.githubusercontent.com/u/145102356?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/145102356?s=400&v=4 |
| og:image:alt | 关联:1lck/Lithe-IDEA#1915(插件的测试、功能矩阵和翻译只在插件仓库,宿主零依赖) 改动 主仓库在 #1915 删掉了 Maven 插件的宿主端到端测试和 6 个功能矩阵条目。这个 PR 把它们接到插件仓库: 宿主端到端测试 e2e/host/desktop/internal/workbench/official_maven_plugin_e2e_test.go:来源... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e906c59266d83416af9bcc8b61b9a96e70a3a84a066bd24f6671c193dd134a04 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/Lithe-IDEA/lithe-plugin-maven git https://github.com/Lithe-IDEA/lithe-plugin-maven.git |
| octolytics-dimension-user_id | 340144206 |
| octolytics-dimension-user_login | Lithe-IDEA |
| octolytics-dimension-repository_id | 1424417765 |
| octolytics-dimension-repository_nwo | Lithe-IDEA/lithe-plugin-maven |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1424417765 |
| octolytics-dimension-repository_network_root_nwo | Lithe-IDEA/lithe-plugin-maven |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a8418b8cd1f6ecc99bee02e3f7dde540702dd08c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width