allure-framework / allure2

Allure Report is a flexible, lightweight multi-language test reporting tool. It provides clear graphical reports and allows everyone involved in the development process to extract the maximum of information from the everyday testing process
https://allurereport.org/
Apache License 2.0
4.06k stars 702 forks source link

annotation @Severity doesnt work in Junit-allure #972

Open ytuzlukov opened 5 years ago

ytuzlukov commented 5 years ago

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

AndrewElfimov commented 5 years ago

have the same problem

vduhautois commented 5 years ago

Same problem for me with allure-junit4 "2.12.1"

VermOwl commented 4 years ago

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

fescobar commented 4 years ago

Did you try with 2.13.0? https://mvnrepository.com/artifact/io.qameta.allure/allure-junit4/2.13.0

tibormesty commented 4 years ago

Same problem for me: Java 11 allure-junit 4.12 allure 2.13.0

AndersonLeonyDeveloper commented 4 years ago

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.

RamiaSaidawi commented 2 years ago

I have the same issue When will this bug be fixed

RamiaSaidawi commented 2 years ago

Is there any update for this issue ?

yanasazanavets commented 1 year ago

Looks like class of @Severity is NOT annotated with @LabelAnnotation(name = SEVERITY_LABEL_NAME)

4ekki commented 1 year ago

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.