Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add property to support the restriction for the Steps length in the report

未关闭
#490 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

首先定位在生成报告步骤时如何处理 allure.max.title.length 属性和 @Step 值。实现所请求的限制,使记录的步骤文本截断为配置的字符数,然后验证诸如 1000 这样的值会改变生成的报告输出。

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

描述

I'm submitting a ...
  • feature request

Add a property to support the restriction for the Steps length in the report, for example,
`allure.max.title.length' as was in Allure 1.

What is the current behavior?

Property allure.max.title.length is ignored.

What is the expected behavior?

When allure.max.title.length=1000 is added in allure.property file, the logged steps in the Allure report should be cut after 1000 symbols.

What is the motivation / use case for changing the behavior?

Sometimes, very big values are passed to methods annotated with @Step annotation, and there is no obvious way to restrict the number of characters to be printed in the report.
For example, if 'allure-assertj' is used, and the JSON objects to be compared are large, there is no way to restrict how they are displayed in the report.
On the following sample screenshot there are more than 2000 characters:
image
and this is just about 1/3 of the whole JSON object. And all its characters are displayed in the step.

Additional information

The issue was discussed here https://github.com/allure-framework/allure2/issues/1150

Allure version 2.13.5
Test framework [email protected]
Allure integration [email protected]
Generate report using [email protected]
主要语言
Java
星标
390
派生
242
平均合并
2 天 14 小时
30 天内合并 PR
13

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

allure-framework/allure-java 的其他 Issue

查看 allure-framework/allure-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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