allure-framework / allure-framework/allure-python

ansi escape sequences formatting

未关闭
#806 2 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
task:improvement theme:pytest theme:pytest-bdd
主要语言
Python
星标
815
派生
260
PR 合并指标
30 天内没有已合并 PR

描述

### Discussed in https://github.com/orgs/allure-framework/discussions/2485

Originally posted by **kuerbisbeule33** April 8, 2024
If I generate the Allure report, I notice that the raw ANSI escape sequences appear in the stdout section of the report (Execution -> Test Body -> Stdout). Consequently, I can see the escape sequences but not their formatting. Is there a way to replicate the same formatting (colors) in the Allure report as seen in the actual console output?
![raw_ansi_escapes](https://github.com/allure-framework/allure2/assets/85802951/50047c29-0a7a-4fa7-add2-5c80501a8d61)

贡献指南

打开贡献指南

调研方向

从链接的讨论开始,并在 Execution → Test Body → Stdout 下的 Allure 报告中复现该问题。跟踪来自 Python 集成的原始 ANSI 输出如何到达该报告部分;当 ANSI 转义序列以其控制台格式呈现,而不是按字面显示时,即视为完成。

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

评估

技术栈
python
领域
testing-qa
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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