I am facing issue with - io.cucumber.core.backend.CucumberBackendException: Please annotate a glue class with some context configuration issue when upgrading Spring , Gradle
Gradle - 7.6 , Spring boot - 3.0.2, Intellij - 2022.3.2, Java - 17,
build.gradle
testImplementation"io.cucumber:cucumber-spring:7.11.1
testImplementation"io.cucumber:cucumber-junit:7.11.1"
Folder Structure:
Please note that this set was working before the upgrade. I am really not sure what is missing.
EndToEndTestsCoverage:
@RunWith(Cucumber::class)
@CucumberOptions(
glue = ["com.xxx.endToEndTests.steps"],
features = ["classpath:com/xxx/endToEndTests/features"])
@ActiveProfiles("test")
class EndToEndTestsCoverage
Config:
@ContextConfiguration
@SpringBootTest(classes = [(com.xxx.Application::class)], webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)