ReferenceField has no component tests and only 42.4% line coverage
维护者通常 2 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- python, react, typescript
调研方向
从 frontend/src/components/Parameters/ReferenceField.tsx 开始,尤其是第 31–76 行,并阅读现有组件测试,遵循其中的交互测试惯例。添加测试,覆盖选择重复引用、重新排序和移除条目,以及禁用的边界控件;当这些用户行为都得到覆盖时,即表示完成,不要把目标覆盖率百分比当作目标。
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
ReferenceField has limited direct component coverage, leaving its user-facing ordering/removal and disabled-boundary behavior unverified.
Describe the solution you'd like
Add interaction tests for selecting/adding repeated references, moving entries up/down, removing entries, and disabled boundary controls.
Describe alternatives you've considered, if relevant.
Prioritize observable user behavior over targeting a particular coverage percentage.
Additional context
Measured line coverage is 42.4%; no claim is made that uncovered lines are all bugs. Source: ReferenceField. Tested commit d3446e045960b5ebee4641aa70fdeb03af186587, PyRIT 1.2.0.dev0, offline test/coverage scope. Evidence: files/evidence/round4/coverage-referencefield.json; local path is not an attachment.
- 主要语言
- Python
- 星标
- 4.7k
- 派生
- 1k
- 平均合并
- 2 天 2 小时
- 30 天内合并 PR
- 439
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/PyRIT 的其他 Issue
-
BUG: LLMGenericTextConverter identifier changes between processes for set-valued template parameters未关闭Bug: triage
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 2 天内回复
-
Bug: triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
Description-only preset edits split comma-containing exact goals into separate goals可能已有人在做 @MRX-72 于 1 天前认领。 未关闭help wanted
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
GUI rejects valid empty-string SearchReplaceConverter settings, preventing deletion converters可能已有人在做 @Darshika140 今天认领。 未关闭help wanted
难度 2/5 1-3 小时 新手友好度 76/100
microsoft/PyRIT#3749 · 3 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
HTML scenario export replaces an intentionally empty converted message with the original text可能已有人在做 @VISHNU0906 于 1 天前认领。 未关闭help wanted
难度 2/5 1-3 小时 新手友好度 77/100
microsoft/PyRIT#3741 · 1 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
elviskahoro/sdk-python-attio#144 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
RenyiELBO raises TypeError when model has no sample sites可能已有人在做 @alibb007 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复