Showing the actual value of complex type parameter with NUnit in the reports

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

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
文档
描述清晰度
需要澄清
活跃度
停滞
技术栈
csharp

调研方向

从链接的 Stack Overflow 问题以及 NUnit 关于参数化测试和报告命名的文档开始。确认报告是否支持复杂参数值,然后使用此 issue 中的测试示例记录所支持的行为或限制。完成的标准是文档给出明确的答案以及示例或变通方案。

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

描述

Hi guys,
first forgive me if this is not the right place to ask questions, but to me it is most suitable.

I remember that I've seen somewhere in the web about showing actual value of complex type parameter. Bear with me while I explain what I mean.

With this test:

[Test]
public void Post_StakeToDifferetnSelectionsViaBetsBetIdEndpoint_ReturnsCorrectData(
   [ValueSource(typeof(JsonContextCache), nameof(JsonContextCache.RandomThreeUniqueSelecionIds))] string[] selectionIds,
   [ValueSource(typeof(TestData), nameof(TestData.OddStyles))] OddStyle oddStyle, 
   [Values(true, false)] bool logged)

My report is generated as following:

Post_StakeToDifferetnSelectionsViaBetsBetIdEndpoint_ReturnsCorrectData(System.String[],European,True)
This also applies for user defined custom types as well.

What I want to achieve however is showing the actual values of this complex type parameters:
Post_StakeToDifferetnSelectionsViaBetsBetIdEndpoint_ReturnsCorrectData(["1","2","3"],European,True)

Is it possible using nUnit or I am mistaken that I've seeing this in the web?
I've also asked that question on SO - https://stackoverflow.com/questions/47649312/showing-the-actual-value-of-complex-type-parameter-with-nunit-in-the-reports
Thanks,
kuskmen

主要语言
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

更多 Documentation Issue

把新 issue 发到你的邮箱

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