allure-framework / allure-framework/allure-python

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

Offen
#776 5 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
task:improvement theme:behave
Vorherrschende Sprache
Python
Sterne
814
Forks
260
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit der allure-behave-Implementierung der Runtime-API, die von der gezeigten Step-Definition verwendet wird. Reproduziere das Snippet und verfolge, warum dynamic.title und dynamic.label keine Wirkung haben. Fertig ist die Aufgabe, wenn der Testname „New name“ lautet und das my-tag-Label im generierten Allure-Ergebnis erscheint.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
testing
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.