Skip to content

Support allure.title decorator for fixtures #210

@tikon93

Description

@tikon93

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?

All of fixtures are shown at report as they named in code.

What is the expected behavior?

I suggest to support allure.title decorator for fixtures as it made for tests.
Code example:

    @allure.title('custom title')
    @pytest.fixture(autouse=True)
    def function_fixture(self,request,pytestconfig):

Please note that it should have effect both for setup and teardown steps. Also, there are old-style fixtures and yield fixtures - both of them should have an ability to use allure.title.

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

It will add possibility to make abstract of fixture representation in report from its realization in code. Reports will be easier to read for people not relating to code (managers etc).

Please tell us about your environment:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions