Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.
baev edited this page Sep 11, 2014 · 8 revisions

This feature is supported since Allure 1.4.1.

Issues are any software problems that are stored in so-called issue trackers. When any of these problems is fixed a test should be normally created to prevent it to appear in future.

How it looks like

Annotations

To link a test case or a test suite to such issues you can use @Issue annotation. Simply specify issue key like shown below:

@Issue("MYISSUE-1")
public void testSomething() {
     ...
}

To add multiple issues - use @Issues annotation:

@Issues({
    @Issue("MYISSUE-1"),
    @Issue("MYISSUE-2")
})
public void testSomething() {
     ...
}

Test suite issues

You can also use syntax show above to annotate test suites instead of separate test cases. In that case each test case of this test suite will be linked to the issue specified.

Issue tracker URL

To specify issue tracker url you should use allure.issues.tracker.pattern property during report generation (either in allure.properties file or as your build tool property):

allure.issues.tracker.pattern=http://github.com/allure-framework/allure-core/issues/%s

In this pattern %s placeholder will be replaced by issue key from annotation.