allure-framework / allure-framework/allure-python

Allure report can not get case result when run case with param `--forked`

未关闭
#742 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug theme:pytest
主要语言
Python
星标
815
派生
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?

image

image

#### 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 结果和报告与五个测试结果进行比较,然后将 done 定义为每个案例都以其正确的通过或失败结果呈现。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
testing
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。