Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add links support #1

Closed
baev opened this issue Feb 14, 2017 · 0 comments
Closed

Add links support #1

baev opened this issue Feb 14, 2017 · 0 comments
Assignees

Comments

@baev
Copy link
Member

baev commented Feb 14, 2017

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/{}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant