René's URL Explorer Experiment


Title: fix(run): preserve test runner arguments, build before test launch, and support JUnit 6 by 1lck · Pull Request #41 · Lithe-IDEA/lithe-plugin-java · GitHub

Open Graph Title: fix(run): preserve test runner arguments, build before test launch, and support JUnit 6 by 1lck · Pull Request #41 · Lithe-IDEA/lithe-plugin-java

X Title: fix(run): preserve test runner arguments, build before test launch, and support JUnit 6 by 1lck · Pull Request #41 · Lithe-IDEA/lithe-plugin-java

Description: PR 类型 / Type fix:修复 Java 测试运行器启动参数丢失、JUnit 6 枚举未识别、测试前未构建及动作收集容错问题 根因与改动 / Root Cause & Changes 根因 严重参数丢失(单测/测试类直接运行无测试执行):crates/java-domain/src/debug/java_test.rs 中的 java_test_launch 为满足 DAP 接口,将 args 和 vmArgs 序列化成单个 JSON 字符串(Value::String);但 backend/src/run.rs 的 test_process 通过 launch_arguments 读取它们时使用 Value::as_array,导致所有 JVM 参数与 JUnit/TestNG 运行器参数(-port、-classNames、-test 等)全部静默丢失,原单测仅以伪造 JSON 数组覆盖而未暴露该问题。 JUnit 6 识别缺失:插件内置 com.microsoft.java.test.plugin-0.43.1.jar 定义了 TestKind.JUnit6 = 3,而 plan_debug_launch 仅匹配 0 | 1 | 2。 测试启动前未触发构建:与 main_process 不同,test_process 未在 LAUNCH_ARGUMENTS_COMMAND 前调用 vscode.java.buildWorkspace,修改/新建测试后可能读取陈旧字节码或缺少测试输出目录。 动作收集串行短路:collect_actions_function 中若 vscode.java.resolveMainMethod 先遇到瞬态错误(如语言服务尚未完全就绪或繁忙),会直接早退并不再查询 vscode.java.test.findTestTypesAndMethods,且两步各占 6000ms 超时可能超出宿主 8000ms 总预算。 改动 crates/java-domain/src/debug/java_test.rs: 新增 JavaTestProcessLaunch 结构体与 java_test_process_launch(),返回强类型的 vm_arguments / program_arguments(Vec)供直接进程启动复用;保留 java_test_launch() 作为 DAP 薄封装以保持向后兼容。 新增单元测试 java_test_process_launch_keeps_typed_vm_and_runner_arguments。 crates/java-domain/src/testing/jdt_test_items.rs: plan_debug_launch 将 0 | 1 | 3 均映射为 JavaTestFramework::Junit。 新增单元测试 junit_6_test_kind_plans_a_junit_launch。 backend/src/run.rs: 提取共享 build_workspace() 辅助函数,由 main_process 与 test_process 共用;test_process 在解析启动计划后先执行增量构建并校验结果,再请求运行器参数。 test_process 改用 java_test_process_launch 与强类型 process_launch_arguments(),移除误用 Value::as_array 的旧 launch_arguments。 将 COLLECT_REQUEST_TIMEOUT_MILLISECONDS 调整为 3_500ms,并通过 combine_collection_outcomes / combine_collection_outcomes_with 独立收集主方法与测试项:一侧遇到瞬态错误时仍保留另一侧已发现的动作,同时维持 deferred 重试标记。 用端到端断言替换原先构造假 JSON 数组的 launch_arguments_follow_the_java_command_line_order 测试(process_launch_arguments_keep_domain_vm_and_runner_arguments、transient_main_method_failure_does_not_suppress_discovered_tests)。 验证 / Verification 命令或操作 平台 结果 cargo fmt --all -- --check macOS arm64 通过 cargo clippy --workspace --all-targets -- -D warnings macOS arm64 通过 cargo test --workspace --locked macOS arm64 通过(lithe-java-backend 165 unit + 10 repository_pins + 4 session,lithe-java-domain 284 unit,0 failed) ./scripts/verify-sdk-lock.sh macOS arm64 通过 真实 JDT LS + 内置 java-debug / java-test Bundle 冒烟(临时 Maven JUnit 5 项目) macOS arm64 通过(完成 findTestTypesAndMethods → buildWorkspace → vscode.java.test.junit.argument → RemoteTestRunner 执行,收到 %TESTC/%TESTS/%TESTE/%RUNTIME58 且退出码为 0,已清理临时目录与进程) 未在本次执行的检查说明: python3 scripts/verify-contract.py 因本机 Python 缺少 jsonschema 模块未能运行(本次未修改 plugin.json 或契约文件)。 未在本机单独启动 Windows 测试。

Open Graph Description: PR 类型 / Type fix:修复 Java 测试运行器启动参数丢失、JUnit 6 枚举未识别、测试前未构建及动作收集容错问题 根因与改动 / Root Cause & Changes 根因 严重参数丢失(单测/测试类直接运行无测试执行):crates/java-domain/src/debug/java_test.rs 中的 java_test_launch 为满足 ...

X Description: PR 类型 / Type fix:修复 Java 测试运行器启动参数丢失、JUnit 6 枚举未识别、测试前未构建及动作收集容错问题 根因与改动 / Root Cause & Changes 根因 严重参数丢失(单测/测试类直接运行无测试执行):crates/java-domain/src/debug/java_test.rs 中的 java_test_launch ...

Opengraph URL: https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

react-profiling0
react-import-mapreact,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-controllerpull_requests
route-actionfiles
fetch-noncev2:15ed2d12-5dc6-d68f-369f-0c3df81c36a0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id962E:3CC37F:912441:C900A4:6B0712F1
html-safe-noncee50333186c3609cc4e3173b2941e685a441a61f82877dd0c106a2be202056d9d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjJFOjNDQzM3Rjo5MTI0NDE6QzkwMEE0OjZCMDcxMkYxIiwidmlzaXRvcl9pZCI6IjYxMjQzMTUyMDYyODMxMDUwMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd271e77516088755b81184c255469d9e3292788d7083a1f483ffce21760feed8
hovercard-subject-tagpull_request:5410779887
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files
twitter:imagehttps://avatars.githubusercontent.com/u/159525154?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/159525154?s=400&v=4
og:image:altPR 类型 / Type fix:修复 Java 测试运行器启动参数丢失、JUnit 6 枚举未识别、测试前未构建及动作收集容错问题 根因与改动 / Root Cause & Changes 根因 严重参数丢失(单测/测试类直接运行无测试执行):crates/java-domain/src/debug/java_test.rs 中的 java_test_launch 为满足 ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9aaa1abe1aaef39a8543ab08df7a776c3243275815d741d29afa7b02148ca05e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/Lithe-IDEA/lithe-plugin-java git https://github.com/Lithe-IDEA/lithe-plugin-java.git
octolytics-dimension-user_id340144206
octolytics-dimension-user_loginLithe-IDEA
octolytics-dimension-repository_id1446370282
octolytics-dimension-repository_nwoLithe-IDEA/lithe-plugin-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1446370282
octolytics-dimension-repository_network_root_nwoLithe-IDEA/lithe-plugin-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release44c43783771de038e2c401dd343799000e8d1253
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2Flithe-plugin-java%2Fpull%2F41%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2Flithe-plugin-java%2Fpull%2F41%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=Lithe-IDEA%2Flithe-plugin-java
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files
Lithe-IDEAhttps://github.com/Lithe-IDEA
lithe-plugin-javahttps://github.com/Lithe-IDEA/lithe-plugin-java
Codehttps://github.com/Lithe-IDEA/lithe-plugin-java
Issues3 (3)https://github.com/Lithe-IDEA/lithe-plugin-java/issues
Pull requests1 (1)https://github.com/Lithe-IDEA/lithe-plugin-java/pulls
Actionshttps://github.com/Lithe-IDEA/lithe-plugin-java/actions
Projectshttps://github.com/Lithe-IDEA/lithe-plugin-java/projects
Security and qualityhttps://github.com/Lithe-IDEA/lithe-plugin-java/security
Insightshttps://github.com/Lithe-IDEA/lithe-plugin-java/insights
Sign up for GitHub https://github.com/signup?return_to=%2FLithe-IDEA%2Flithe-plugin-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FLithe-IDEA%2Flithe-plugin-java%2Fissues%2Fnew%2Fchoose
1lckhttps://github.com/1lck
mainhttps://github.com/Lithe-IDEA/lithe-plugin-java/tree/main
fix/java-test-runner-launch-argshttps://github.com/Lithe-IDEA/lithe-plugin-java/tree/fix/java-test-runner-launch-args
Conversation 0 https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41
Commits 1 https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/commits
Checks 12 https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/checks
Files changed https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files
fix(run): preserve test runner arguments, build before test launch, and support JUnit 6 https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#top
Show all changes 1 commit https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files
0a16c6f fix(run): preserve typed test runner launch args, build before test, … 1lck Nov 20, 2026 https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/commits/0a16c6fc016942db2d3975d0bdaa53a70ae797cf
Clear filters https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files
run.rs https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
java_test.rs https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-012ee5763c85190ca5eb32609af2926f7ab7d9d5e0b5c364e5ce609460da2203
jdt_test_items.rs https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-589a4a655f1ca24b63070c96438da7df7ce4a0756548c860bc8f646c80e54e95
backend/src/run.rshttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
View file https://github.com/Lithe-IDEA/lithe-plugin-java/blob/0a16c6fc016942db2d3975d0bdaa53a70ae797cf/backend/src/run.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/41/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.