allure-framework / allure-framework/allure-python
Allure report can not get case result when run case with param `--forked`
- 主要言語
- Python
- スター
- 814
- フォーク
- 260
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi Team,
I am facing issue to get case result when generate allure report using allure-pytest 3.13.1 version.
Cli: python -m pytest --forked tests/function -q --alluredir=./__out__/results
#### I'm submitting a ...
bug report
#### 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
Demo code:
`class TestDemo:
def test_01(self):
print("case pass")
assert True
def test_02(self):
print("case fail")
assert False
def test_03(self):
print("case pass")
assert True
def test_04(self):
print("case pass")
assert True
def test_05(self):
print("case fail")
assert False`
Cli: python -m pytest --forked tests1 -q --alluredir=./__out__/results
allure generate -o __out__/html/ __out__/results/
#### What is the expected behavior?
#### What is the motivation / use case for changing the behavior?
#### Please tell us about your environment:
- Allure version: 2.20.1
- Test framework: pytest7.3.1
- Allure adaptor: allure-pytest@2.13.1
- pytest-forked: 1.6.0
コントリビューションガイド
調査の方向性
まず、pytest 7.3.1、pytest-forked 1.6.0、allure-pytest 2.13.1、および --forked と --alluredir オプションを使って、報告されたデモを再現します。生成された Allure の結果とレポートを 5 つのテスト結果と比較し、すべてのケースが正しい成功または失敗の結果とともに表現されていることを done の定義とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- testing
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100