allure-framework / allure-python

Allure integrations for Python test frameworks
https://allurereport.org/
Apache License 2.0
718 stars 237 forks source link

possible to add step status ? #673

Closed Cooboob closed 1 year ago

Cooboob commented 2 years ago

any possible to add method to modify step status, such as pass, fail, skip ?

skhomuti commented 2 years ago

Hey @Cooboob! At the moment there isn't way to add status directly in the step like:

with allure.step("Step name", status=Status.Fail):

but you can do it explicitly with your own custom step - take a look this examples https://github.com/allure-examples/allure-examples/blob/master/allure-python/allure-python-pytest/test/extra/allure_assume_step.py