4

I want to use allure tags to order my tests. So I try to mark them using allure.epic and allure.feature tags. I found out that I had to mark all the tests (I don't have test classes). Is it possible to mark with @allure.epic("") a test file just one time instead of putting decorators to every tests?

@allure.epic("critical_tests")
@pytest.mark.run(order=1901)
@pytest.mark.dependency()
def test_open_page(app):

    page = AnalyticChart(app)
    page.open_page()


@allure.epic("critical_tests")
@pytest.mark.run(order=1902)
@pytest.mark.dependency(depends=['test_open_page'])
def test_select_sdo(app):

    select_sdo_by_name(sdo_name, app.wd)
Deeslo
  • 51
  • 5

1 Answers1

0

Try to create allure.properties file or yaml file with this line in it allure.label.epic=critical_tests

RamiaSY
  • 1
  • 1
  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jul 03 '22 at 04:23