Preprocessor standard
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 領域
- tooling
調査の方向性
この issue では、リポジトリのファイル、テスト、エントリポイントが指定されていません。まず既存の Document → Parser フローと、関連する SpecFlow external-examples のサポートを確認し、その後、Gherkin および将来的な Markdown 入力を対象として、構文、ソース形式、プラグイン、マージセマンティクスをカバーする preprocessor API を定義してください。未解決の問題が合意された仕様で解決されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
While we usually recommend putting all the data for a scenario inside of Gherkin documents, there are valid use cases for pulling data in from an external source, such as an Excel file (or other source).
SpecFlow already has support for this
I would like to come up with a specification for a preprocessor API that supports Gherkin, but also Markdown, which we might add support for at some time.
What I have in mind is this:
Document -> Preprocessor -> Preprocessed Document -> Parser -> AST -> Compiler -> Pickles -> Cucumber -> Results
The flow is currently:
Document -> Parser -> AST -> Compiler -> Pickles -> Cucumber -> Results
We could agree on a set of preprocessor directives for each supported input format (Gherkin, Markdown). Open questions:
Syntax
SpecFlow currently uses the format @source:excel-file-path[:sheet-name].
That works, but it wouldn't allow e.g. fetching an Excel document from a URL.
It also overloads the tag syntax, which seems a little confusing to me. I would prefer a dedicated preprocessor syntax (like the C preprocessor). Ideally a syntax that would work for both Gherkin and Markdown
Format
What if we want to pull data in from a CSV or JSON source? It would be nice if users could easily plug in their own preprocessor plugins for parsing the data at the external source. We'd provide a default one for CSV and/or Excel. I think most languages have decent Excel parsers.
Semantics
SpecFlow will merge contents from the Gherkin document and the external Excel document. That seems useful, but it would be great to be specific about what happens if the columns differ in various circumstances.
Let's discuss!
- 主要言語
- 言語のデータがありません
- スター
- 3.4k
- フォーク
- 676
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cucumber/common のほかの issue
-
Upgrade to TypeScript 7再び着手できるかも @davidjgoss が 124 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンlanguage: javascript
-
Allowing both DocString and DataTable on a single step再び着手できるかも @mpkorstanje が 129 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
Enable static analysis再び着手できるかも @mpkorstanje が 220 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
cucumber/common の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
andromarces/agent-loops#2055 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
laaielichter/AgentHaven#250 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
terrazzoapp/terrazzo#902 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 3 日以内に返信