-
Notifications
You must be signed in to change notification settings - Fork 238
Closed
Description
We should create an annotation @Link(name, url, type)
- Name - optional, text for link displayed in the report
- Url - the url (or probably part of the url) for link
- Type - optional, used for link icon
Also you can use system properties for common parts of links:
allure.link.{type}.pattern = https://example.org/{}
Predefines for issue and tms:
@Issueis the link with typeissue@Tmsis the link with typetms
Examples of usage:
@Link("https://example.org")
@Link(name = "My site", url = "https://example.org")
@Link(name = "My other site", url = "https://example.org", type = "hello")
@Link(name = "Yet another site", url = "id-123", type = "hello") // and system property `allure.link.hello.pattern: https://example.org/{}`
@Issue("SOME-123")
@Issue("https://example.org/SOME-123")
@Issue(name = "SOME-123", url = "https://example.org/SOME/123")
@Issue(name = "SOME-123", url = "SOME/123") // and system property `allure.link.hello.pattern: https://example.org/{}`Metadata
Metadata
Assignees
Labels
No labels