allure-framework / allure-framework/allure-python
Precondition and expected results decorators
- 主要言語
- 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 expected behavior?
Would be great to have the ability to add preconditions and expected results in pytest allure decorators, similar to `@allure.title`, `@allure.description`, etc.
Ex:
```python
@allure.title('This is a test')
@allure.precondition('This is precondition 1')
@allure.precondition('This is precondition 2, or maybe it can be passed as a list to one decorator')
@allure.expected_result('At the end, it should be `1`')
def test_something():
pass
```
#### What is the motivation / use case for changing the behavior?
When creating manual tests, we do have these features, ex:

We have a _lot_ of automated tests that have visibility to other teams and separating the preconditions from the description would be very useful.
#### Please tell us about your environment:
- Allure version: 2.24.1
- Test framework: pytest@7.4.3
- Allure adaptor: allure-pytest@2.13.2
#### Other information
[//]: # (
. e.g. detailed explanation, stacktraces, related issues, suggestions
. how to fix, links for us to have more context, eg. Stackoverflow, Gitter etc
)
コントリビューションガイド
調査の方向性
まず、@allure.title や @allure.description などの既存の pytest デコレーターと、それらのメタデータがどのように表現されているかを調べます。繰り返し指定された前提条件と期待される結果を説明とは別に公開する方法を決定し、次に要求されたデコレーターの動作をカバーするテストを追加して、生成されたレポートにこれらのフィールドが表示されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- testing
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100