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

オープン
#244 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
6

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nunit/docs のほかの issue

nunit/docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。