microsoft / microsoft/vscode-java-test
Inherited tests not supported
未关闭
还没有人认领这个 Issue。
ai-triaged
bug
investigating
junit
low-priority
test-discovery
- 主要语言
- TypeScript
- 星标
- 340
- 派生
- 173
- 平均合并
- 1 天 19 小时
- 30 天内合并 PR
- 18
描述
Codelens appears for the abstract test class even though it cannot be run directly (IntelliJ redirects you to the classes that inherit from the abstract class instead ...)
Codelens does not appear on the classes that inherit from the abstract test class
Sidebar only runs tests in abstract class resulting in InstantiationException because it's abstract.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 VS Code Java test extension 中使用一个抽象测试类和一个或多个继承该类的测试类来复现此行为。跟踪 Codelens 条目和侧边栏测试执行是如何被发现和启动的。完成的标准是:继承类公开可运行的 Codelens 条目,而抽象类不会作为可直接运行的测试提供。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- developer-experience, testing
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100