allure-framework / allure2

Allure Report is a flexible, lightweight multi-language test reporting tool. It provides clear graphical reports and allows everyone involved in the development process to extract the maximum of information from the everyday testing process
https://allurereport.org/
Apache License 2.0
3.93k stars 695 forks source link

[Feature] Add link type for "User Story" with a different icon #2267

Open harmin-parra opened 6 months ago

harmin-parra commented 6 months ago

Describe the Bug

I want to propose a new Feature.

Currently, Allure proposes a issue link type.

The inconvenience I have is that in my use case, I want to add links to two types of issues (bug & user story) and Allure assigns the same icon to both links image

I would like to add links to "user stories" and have a different icon associated to those links.

Is it possible to add a link type named story with a different icon associated to it?

It would share the same link pattern of the issue link type

Steps to Reproduce

Let me give you an example of how this new feature should work :

For java: add @Story annotation

class TestMyWebsite {

    @Link(name = "Website", url = "https://dev.example.com/")
    @Issue("AUTH-123")
    @Story("AUTH-124")
    @TmsLink("TMS-456")
    void testAuthentication() {
        // ...
    }
}

For Python: add @allure.story decorator

@allure.link("https://dev.example.com/", name="Website")
@allure.issue("AUTH-123")
@allure.story("AUTH-124")
@allure.testcase("TMS-456")
def test_authentication():
    ...

The story link type will share the same link pattern of the issue link type, but will have a different icon associated.

Expected Behaviour

The story link type will share the same link pattern of the issue link type, but will have a different icon associated.

Screenshots or Additional Context

No response

What Language are you using?

Java

What Framework/Allure Integration you are using?

allure-junit5

What version of Allure Integration you are using?

2.24.1

What version of Allure Report you are using?

2.24.1

Code of Conduct

noomorph commented 2 months ago

Hmm... isn't it possible for you to use a workaround like allure.link("https://my-tracker.com/issue/${id}", name="✍ ${id}")? 🤔

gedeal commented 1 month ago

Thanks ;-) It works like a charm let id = 'NIT-T346' allure.link('https://jira.my.on/secure/Tests.jspa#/testCase/${id}', name='✍ 🤔 🔥 '+id)