ReferenceField has no component tests and only 42.4% line coverage

未关闭 适合新手
#3,727 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

@ppcvote 已经在做这个了。

开始于 2026年11月2日。

  • #3842 来自 @ppcvote —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
python, react, typescript
领域
frontend, testing

调研方向

从 frontend/src/components/Parameters/ReferenceField.tsx 开始,尤其是第 31–76 行,并阅读现有组件测试,遵循其中的交互测试惯例。添加测试,覆盖选择重复引用、重新排序和移除条目,以及禁用的边界控件;当这些用户行为都得到覆盖时,即表示完成,不要把目标覆盖率百分比当作目标。

由索引模型根据 Issue 内容生成。

描述

help wanted
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

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/PyRIT 的其他 Issue

查看 microsoft/PyRIT 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。