Issues with Implementing Values Attribute and Customizing Name Format

未关闭
#305 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
领域
testing

调研方向

首先查看 Values、TestCaseSource 和生成的测试名称的文档;该 issue 未指定文件或测试。确定所请求的参数名称格式是文档变更还是功能请求,并在继续之前定义预期的显示格式。

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

描述

This may be an issue with documentation(or a feature request, i'll lean on the side that i'm missing something), however I am currently running into an issue that i'm having difficulty finding a workaround.

Currently I am able to use the Values attribute correctly, however i am not able to use the Values attribute in conjuncture with a custom name assigned to the collection of test cases.
I've attempted TestCaseSource, however I am unable to implement this change using the Values attribute (with it's current restrictions).

Simple Business Description:

  • I have a test with 3+ parameters (all using the value property, (all enums in this case))
  • I have Label that is generated, however it does not accurately convey what that test is doing.

Desired Result:

  • Have the parameters used displayed along with the name of the variable they're assigned to.

Ex:
The shared enum has 3 values, All, Some, and None.
Test will display as:
Test("Param1Name : All, Param2Name: Some, Param3Name: None")

Instead, I am getting:
Test(All,Some,None)

主要语言
Dockerfile
星标
601
派生
159
平均合并
22 小时 18 分钟
30 天内合并 PR
6

环境准备

在 Codespaces 中打开

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

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

从这里开始

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

nunit/docs 的其他 Issue

查看 nunit/docs 的全部 Issue

相似的 Issue

更多 Testing & QA Issue

把新 issue 发到你的邮箱

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