Repository navigation
fix: 修复 Gradle 增量测试报告显示为零 - #1
Merged
Merged
Conversation
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.
Gradle 将重复测试标记为 UP-TO-DATE 时不会重写 JUnit XML;Lithe 过滤运行开始前的旧报告后显示 0 个用例。
测试命令在任务名后增加 Gradle 7.6 起支持的任务级
--rerun,只重新执行选中的测试任务,编译和依赖任务仍可复用增量结果。保留宿主的旧报告过滤,不修改宿主或为 Gradle 增加特判。增加真实 Gradle 回归:连续两次运行同一测试,固定将首轮报告时间设旧,确认第二轮生成包含 2 个用例的新报告且测试类 mtime 不变。新增
--test-results-only聚焦入口并更新说明;既有完整测试默认仍运行。验证:本地 Gradle 9.6.1 聚焦回归通过(第二轮 3.83 秒),包清单与 SHA-256 不变,独占 Gradle home 和进程已清理。按用户要求未运行大范围检查,Gradle 7.6 由仓库 CI 覆盖。本次不创建 tag 或 Release。