Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#490 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
java
Área
testing-qa

Línea de trabajo

Comienza localizando cómo se gestionan la propiedad allure.max.title.length y los valores de @Step cuando se generan los pasos del informe. Implementa el límite solicitado para que el texto del paso registrado se corte en el número configurado de caracteres y, a continuación, verifica que un valor como 1000 cambie la salida del informe generado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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]
Lenguaje dominante
Java
Estrellas
390
Forks
242
Merge medio
2 d 14 h
PR fusionados (30 d)
13

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de allure-framework/allure-java

Todos los issues de allure-framework/allure-java

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.