allure2
allure2 copied to clipboard
annotation @Severity doesnt work in Junit-allure
Annotation @Severity doesnt work in Junit-allure, from version allure-junit4 "2.10.0" to current.
In test like this,
@Epic( "1")
@Feature("2")
@Story("3")
@Owner("4")
@Test
@Severity(SeverityLevel.CRITICAL)
public void testseverity() {
registrationPage.emailNotUniqueReg();
}
}
after execution mvn clean test и mvn allure:serve
severity annotations doesnt work (on reporting page it shows like "Normal"). The json autogenerated results file also doesnt have this annotation. The rest annotations work.
In version allure-junit4 "2.9.0" and below there is no such problem
have the same problem
Same problem for me with allure-junit4 "2.12.1"
platform linux -- Python 3.6.9, pytest-5.3.1, py-1.8.0, pluggy-0.13.1 plugins: allure-pytest-2.8.6, rerunfailures-8.0 I have this problem too
Did you try with 2.13.0
?
https://mvnrepository.com/artifact/io.qameta.allure/allure-junit4/2.13.0
Same problem for me: Java 11 allure-junit 4.12 allure 2.13.0
Same problem for me: Java 11 allure-junit 4.12 allure 2.13.0
I solved this problem changing the alure-junit version to 2.8.1.
I have the same issue When will this bug be fixed
Is there any update for this issue ?
Looks like class of @Severity is NOT annotated with
@LabelAnnotation(name = SEVERITY_LABEL_NAME)
As a workaround, you can annotate tests with
@LabelAnnotation(name = "severity", value = "critical")
Make sure to use lowercase values, otherwise report will show 'normal'. It's not very convenient, but at least working.