allure-framework / allure-framework/allure-python

Add dynamic.label and dynamic.title support to allure-behave

Abierto
#776 5 comentarios 1 reacción 0 asignados Ver en GitHub
task:improvement theme:behave
Lenguaje dominante
Python
Estrellas
814
Forks
260
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

#### I'm submitting a ...
- [ ] bug report
- [x] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.

#### What is the current behavior?

#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

Currently, there is no way to set a test's name or add a label dynamically. The following code has no effect:

```python
@given("...")
def step_impl():
allure.dynamic.title("New name")
allure.dynamic.label("tag", "my-tag")
```

#### What is the expected behavior?

The code above should change the test's name to `"New name"` and add the `my-tag` tag to the test.

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

To make the runtime API complete.

#### Please tell us about your environment:

- Allure adaptor: allure-behave@2.13.2

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con la implementación de allure-behave de la API de runtime utilizada por la definición de paso mostrada. Reproduce el fragmento y rastrea por qué dynamic.title y dynamic.label no tienen ningún efecto. Se considera terminado cuando el nombre de la prueba es “New name” y la etiqueta my-tag aparece en el resultado de Allure generado.

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

Evaluación

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

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.