You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The getTestMethod method in the io.qameta.allure.junitplatform.AllureJunitPlatformUtils class doesn't function as expected for tests that are inherited. This is because it uses aClass.getDeclaredMethods(), which only operates on the current instance and does not include methods that are inherited. This can cause issues with annotations related to methods, such as descriptions and others.
Steps to Reproduce
Create two test classes:
abstract class AbstractTest {
@Test
@Description("Test description")
fun test() {
}
}
class ImplTest: AbstractTest() {
}
Run ImplTest.
Check the description in the Allure UI.
Expected Behaviour
The test should contain the "Test description" text in the description section.
Screenshots or Additional Context
The description is absent.
What Language are you using?
Java, Kotlin
What Framework/Allure Integration you are using?
allure-junit5
What version of Allure Integration you are using?
2.27.0
What version of Allure Report you are using?
2.11.2
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Describe the Bug
The
getTestMethod
method in theio.qameta.allure.junitplatform.AllureJunitPlatformUtils
class doesn't function as expected for tests that are inherited. This is because it usesaClass.getDeclaredMethods()
, which only operates on the current instance and does not include methods that are inherited. This can cause issues with annotations related to methods, such as descriptions and others.Steps to Reproduce
ImplTest
.Expected Behaviour
The test should contain the
"Test description"
text in the description section.Screenshots or Additional Context
The description is absent.
What Language are you using?
Java, Kotlin
What Framework/Allure Integration you are using?
allure-junit5
What version of Allure Integration you are using?
2.27.0
What version of Allure Report you are using?
2.11.2
Code of Conduct
The text was updated successfully, but these errors were encountered: