Rerun formatter: the message based version miss failures in around hooks
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず、メッセージベースの rerun formatter とイベントベースのバージョンを比較し、Around hook の失敗と、issue に記載されている TestCaseFinished および TestStepFinished メッセージに注目してください。Around hook の失敗が検出され、rerun の出力に空ではなく division.feature:6 が含まれれば完了です。
索引モデルが issue の本文から書いたものです。
説明
👓 What did you see?
For Around hook there are no TestStepStarted or TestStepFinished events fired. If an Around hook fails it is only detected from the result in the TestCaseFinished event. The result of the TestCaseFinished event are frequently used by formatters in Cucumber-Ruby, so the event based formatters do detect and report failures in Around hook.
In case of messages there is only result data in the TestStepFinished message and not in the TestCaseFinished message. Therefore, when the rerun formatter was changes to use messages instead of event, it no longer detect failures in Around hooks.
Using the message based version of the rerun formatter, a failure in an Around hook could look like:
Summary output:
1 scenario (1 failed)
4 steps (4 passed)
Content for rerun file is empty
✅ What did you expect to see?
Using the event based version of the rerun formatter, a failure in an Around hook could look like:
Summary output:
1 scenario (1 failed)
4 steps (4 passed)
Content for rerun file:
division.feature:6
📦 Which tool/library version are you using?
No response
🔬 How could we reproduce it?
No response
📚 Any additional context?
No response
- 主要言語
- Ruby
- スター
- 5.2k
- フォーク
- 1.1k
- 平均マージ
- 2日 14時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cucumber/cucumber-ruby のほかの issue
-
:bug: bug
難易度 4/5 3〜5日 初心者へのやさしさ 62/100
cucumber/cucumber-ruby#1908 · コメント 4 件 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
:bank: debt
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
cucumber/cucumber-ruby#1884 ·
メンテナーはふだん 2 日以内に返信
-
:bank: debt
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
cucumber/cucumber-ruby#1871 ·
メンテナーはふだん 2 日以内に返信
-
:bank: debt
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
cucumber/cucumber-ruby#1840 ·
メンテナーはふだん 2 日以内に返信
-
CCK upgrade pathsオープン:bank: debt
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
cucumber/cucumber-ruby#1822 · コメント 9 件 ·
メンテナーはふだん 2 日以内に返信
cucumber/cucumber-ruby の issue をすべて見る
似ている issue
-
instrumentation-sidekiq
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
open-telemetry/opentelemetry-ruby-contrib#2735 ·
メンテナーはふだん 2 日以内に返信
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raisingオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ruby/securerandom#92 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
we-promise/sure#5902 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信