-
Notifications
You must be signed in to change notification settings - Fork 89
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
Unable to generate serenity-reports #33
Comments
Dependencies used: implementation('org.codehaus.groovy:groovy-all:3.0.13') { implementation 'org.springframework.cloud:spring-cloud-starter-config' testImplementation 'net.serenity-bdd:serenity-core:3.1.15' |
This is from my project. I added spring integration also to the project by using @SpringBootTest annotation and running with
@ExtendsWith(SerenityJunit5Extension.class)
Previously, we were using serenity, junit4 & springboot and running tests with @RunWith(SpringIntegrationSerenityRunner)...This works fine and reports are generated. |
I see the below stack trace on standard output
java.lang.NoSuchMethodError: 'java.lang.Class org.junit.platform.engine.support.descriptor.MethodSource.getJavaClass()'
at net.serenitybdd.junit5.SerenityTestExecutionListener.testingThisTest(SerenityTestExecutionListener.java:425) ~[serenity-junit5-3.1.15.jar:na]
at net.serenitybdd.junit5.SerenityTestExecutionListener.testStarted(SerenityTestExecutionListener.java:396) ~[serenity-junit5-3.1.15.jar:na]
at net.serenitybdd.junit5.SerenityTestExecutionListener.executionStarted(SerenityTestExecutionListener.java:236) ~[serenity-junit5-3.1.15.jar:na]
at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.lambda$executionStarted$6(TestExecutionListenerRegistry.java:99) ~[junit-platform-launcher-1.6.3.jar:1.6.3]
at org.junit.platform.launcher.core.TestExecutionListenerRegistry.lambda$notifyEach$1(TestExecutionListenerRegistry.java:67) ~[junit-platform-launcher-1.6.3.jar:1.6.3]
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) ~[na:na]
java.lang.NoSuchMethodError: 'java.lang.reflect.Method org.junit.platform.engine.support.descriptor.MethodSource.getJavaMethod()'
at net.serenitybdd.junit5.SerenityTestExecutionListener.updateResultsUsingTestAnnotations(SerenityTestExecutionListener.java:356) ~[serenity-junit5-3.1.15.jar:na]
at net.serenitybdd.junit5.SerenityTestExecutionListener.testFinished(SerenityTestExecutionListener.java:334) ~[serenity-junit5-3.1.15.jar:na]
at net.serenitybdd.junit5.SerenityTestExecutionListener.executionFinished(SerenityTestExecutionListener.java:277) ~[serenity-junit5-3.1.15.jar:na]
at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.lambda$executionFinished$10(TestExecutionListenerRegistry.java:109) ~[junit-platform-launcher-1.6.3.jar:1.6.3]
at org.junit.platform.launcher.core.TestExecutionListenerRegistry.lambda$notifyEach$1(TestExecutionListenerRegistry.java:67) ~[junit-platform-launcher-1.6.3.jar:1.6.3]
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) ~[na:na]
The text was updated successfully, but these errors were encountered: