Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#490 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
45/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
java
Domínio
testing-qa

Direção de pesquisa

Comece localizando como a propriedade allure.max.title.length e os valores de @Step são tratados quando as etapas do relatório são geradas. Implemente o limite solicitado para que o texto da etapa registrada seja cortado no número configurado de caracteres e, em seguida, verifique se um valor como 1000 altera a saída do relatório gerado.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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]
Linguagem predominante
Java
Estrelas
390
Forks
244
Merge médio
10d 4h
PRs com merge (30d)
1

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de allure-framework/allure-java

Todas as issues de allure-framework/allure-java

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.