allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

Add posibility to allure_robotframework listener to send "broken" test status to allure

Open MrBIN89 opened this issue 2 years ago • 1 comments

I'm submitting a ...

  • [ ] feature request

What is the current behavior?

Currently allure_robotframework listener can send just four statuses to Allure - PASSED, FAILED, SKIPPED, UNKOWN (only in failure case), those are hardcoded in get_allure_status function.

What is the expected behavior?

Add possibility to send other test statuses, for example, BROKEN that actually in the default allure statuses list.

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

In my case we need to divide failed cases by different statuses on allure(failed for usual failures and broken for known cases with opened issues)

Please tell us about your environment:

allure-python-commons 2.13.2 allure-robotframework 2.13.2

MrBIN89 avatar Aug 04 '23 07:08 MrBIN89

Hi, @MrBIN89

Yep, we should definitely use BROKEN for non-assertion-related errors.

Also, take a look at allure categories. That might be the feature you're looking for.

delatrie avatar Aug 08 '23 13:08 delatrie