allure-framework / allure-framework/allure-python
Add dynamic.label and dynamic.title support to allure-behave
- 主要言語
- Python
- スター
- 814
- フォーク
- 260
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
#### I'm submitting a ...
- [ ] bug report
- [x] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.
#### What is the current behavior?
#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Currently, there is no way to set a test's name or add a label dynamically. The following code has no effect:
```python
@given("...")
def step_impl():
allure.dynamic.title("New name")
allure.dynamic.label("tag", "my-tag")
```
#### What is the expected behavior?
The code above should change the test's name to `"New name"` and add the `my-tag` tag to the test.
#### What is the motivation / use case for changing the behavior?
To make the runtime API complete.
#### Please tell us about your environment:
- Allure adaptor: allure-behave@2.13.2
コントリビューションガイド
調査の方向性
示されているステップ定義で使用されている runtime API の allure-behave 実装から始めます。スニペットを再現し、dynamic.title と dynamic.label に効果がない理由を追跡します。テスト名が「New name」になり、生成された Allure 結果に my-tag ラベルが表示されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- testing
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100