0

I use pytest and allure, and I want to put into SUITES something more informative instead of tests.incident.addd_incident. How can I do that?

1 Answers1

1

From this Github issue, all you need to do is decorate your test function with @allure.title:

@allure.title("Descriptive title for test")
def test_add_incident(self):
    ...
MattDMo
  • 100,794
  • 21
  • 241
  • 231
  • It doesn't work for me for some reason. @allure.title("API01_add_incident") def test_add_incident_status_code_200(data_for_status_code_test, add_incident): role = add_incident.role expected_code, real_code = data_for_status_code_test assert expected_code == real_code – bananacatsky Aug 10 '22 at 16:10