allure-framework / allure-framework/allure-python

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

Aperta
#776 5 commenti 1 reazione 0 assegnatari Vedi su GitHub
task:improvement theme:behave
Lingua principale
Python
Stelle
814
Fork
260
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

#### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con l’implementazione allure-behave dell’API runtime utilizzata dalla step definition mostrata. Riproduci lo snippet e traccia il motivo per cui dynamic.title e dynamic.label non hanno alcun effetto. Il lavoro è terminato quando il nome del test è “New name” e l’etichetta my-tag compare nel risultato Allure generato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
testing
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.