Skip to content

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

Open
@delatrie

Description

@delatrie

I'm submitting a ...

  • bug report
  • 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:

@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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    task:improvementChange that improves some user experience but can't be considered a new featuretheme:behave

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions