Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

No substitution in --gherkin-terminal-reporter output for scenario outline in pytest parametrizing way

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
40/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
testing

調査の方向性

リンク先のドキュメントにある、示された pytest コマンドと pytest のパラメータ化パターンを使って問題を再現します。--gherkin-terminal-reporter の出力経路を追跡し、pytest パラメータに対する scenario-outline のレンダリングを報告された出力と比較します。完了条件は、パラメータ値が山括弧のプレースホルダーを置き換えることです。

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

説明

In issue 222 and 235, I saw the same issue was addressed if the scrnario outline is in traditional Gherkin way, i.e. via Examples in feature files. But if the parametrization is done via pytest way, see doc, and the output still does not substitute the in the output. like this:

pytest --disable-pytest-warnings --gherkin-terminal-reporter -k test_default_merge -vv
=========================================================================================================================== test session starts ============================================================================================================================
platform darwin -- Python 2.7.10, pytest-4.6.5, py-1.8.0, pluggy-0.12.0 -- /Users/murphy/Projects/pyocnos-IPI-integration-tests/venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/murphy/Projects/pyocnos-IPI-integration-tests, inifile: tox.ini
plugins: bdd-3.2.1
collected 7 items / 5 deselected / 2 selected
Feature: applying a config to a switch should be idempotent, no matter it is a replace or merge
Scenario: default merge
Given switch <switch_name> has been alive
When replace its running config with <config_file_replacement>
....
(more output truncated)

主要言語
Python
スター
1.5k
フォーク
251
平均マージ
43分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

pytest-dev/pytest-bdd のほかの issue

pytest-dev/pytest-bdd の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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