Skip to content

Add links support #1

@baev

Description

@baev

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:

  • @Issue is the link with type issue
  • @Tms is the link with type tms

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions