Make `strict` behaviour consistent and document it

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

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

評価

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

調査の方向性

まず、提案されている厳格な動作の表を確認し、さまざまな Cucumber 実装と比較します。望ましいデフォルト値と結果について合意し、その後、差異について実装固有の問題を特定します。実装間の整合が取れ、合意した動作がドキュメントサイトに記載されれば完了です。

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

説明

:book: documentation :safety_pin: pinned platform consolidation

Various cucumber implementations have inconsistent behaviour for strict:

  • Default value true or false?
  • Does strict cause undefined steps to fail?
  • Does strict cause pending steps to fail?

I propose we make strict default to true. By defaulting to true we're actively discouraging users from making a lot of WIP, and I think an opinionated tool like Cucumber should do stuff like that.

I also propose the following behaviour:

strict=true strict=false
undefined step error no error
pending step error no error
failed step error error
passed step no error no error
ambiguous step error error

I haven't looked into whether the various implementations behave like this. Let's agree on the desired behaviour - then create issues for the implementations that deviate so we can fix this.

When all implementations are fixed we should put this up on the docs site.

主要言語
言語のデータがありません
スター
3.4k
フォーク
676
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

cucumber/common のほかの issue

cucumber/common の issue をすべて見る

似ている issue

Testing & QA の issue をもっと見る

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

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