Event <-> Message conversion (Mapping Document)

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

メンテナーはふだん 2 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
静か
技術スタック
ruby
領域
documentation

調査の方向性

まず、issue で言及されている MessageBuilder を読み、一覧にあるペアのイベント定義とメッセージ定義を見つけます。現在のリスナーを、提案されている 1:1、1:0、および未処理イベントのマッピングと比較し、確認済みのマッピングと未解決の変換の詳細を記録します。

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

説明

:bank: debt
🤔 What's the problem you've observed?

We need to generate a mapping of events to messages. Ideally in the situation to start with we can generate both directly from emmittence - but then eventually we can remove events

✨ Do you have a proposal for making it better?

Event <-> Message 1:1 map

  • Envelope <-> Envelope
  • GherkinSourceRead <-> Source
  • StepDefinitionRegistered <-> StepDefinition
  • TestCaseReady <-> TestCase (With n nested TestStep)
  • TestCaseStarted <-> TestCaseStarted
  • TestCaseFinished <-> TestCaseFinished (With :will_be_retried attribute derived from combination of event AND repository object)
  • TestRunStarted <-> TestRunStarted
  • TestRunFinished <-> TestRunFinished (With :success attribute derived from event)
  • TestRunHookStarted <-> TestRunHookStarted
  • TestRunHookFinished <-> TestRunHookFinished (With nested TestStepResult)
  • TestStepStarted <-> TestStepStarted
  • TestStepFinished <-> TestStepFinished (With nested TestStepResult)
  • UndefinedParameterType <-> UndefinedParameterType

Event -> No Message 1:0 map

  • GherkinSourceParsed
  • HookTestStepCreated
  • StepActivated
  • TestStepCreated

Unhandled events (No listener in MessageBuilder)

  • TestCaseCreated
📚 Any additional context?

No response

主要言語
Ruby
スター
5.2k
フォーク
1.1k
平均マージ
2日 14時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

cucumber/cucumber-ruby のほかの issue

cucumber/cucumber-ruby の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

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

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