Allow the user to provide "describers" on a per-handler basis.

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
go
領域
testing-qa

調査の方向性

この issue では、ファイル、テスト、エントリーポイントが指定されていません。まず、ハンドラー、プロジェクション、エンジンのディスパッチ/ティック、期待値レポートがどのように表現されているかを追跡し、次に提案されているハンドラーごとの describer を verbose オプションおよびディスクへの出力に関する案と比較してください。ハンドラーの状態を記述するための合意済みの設計と文書化された動作が、ストレージ形式を強制せずに定まれば完了です。

索引モデルが issue の本文から書いたものです。

説明

It might be useful if the user could provide a function that can describe the current state of a projection (or perhaps any other handler) so that it can be observed when a test fails and/or between each engine dispatch/tick.

I am not sure how much merit this idea has; specifically, I wouldn't want devs to spend forever writing and updating code that exports SQL database state in a human readable format. For SQL projectionkit could help with that, but obviously projections are not limited to any particular storage technology.

This is also potentially a LOT of data, possibly too much to include in an expectation report, but I suppose it could be written to disk and the expectation report could print the file location. Another option would be to reimplement some kind of verbose option.

主要言語
Go
スター
1
フォーク
1
平均マージ
18分
マージ済み PR(30日)
7

環境構築

はじめの一歩

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

dogmatiq/testkit のほかの issue

dogmatiq/testkit の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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