Open sudheerah opened 2 years ago
I managed to run tests via IDE using gradle tasks/ io.cucumber.core.cli.Main. Below are the versions
Java17
Gradle 7.4.2
serenity-cucumber6 - 2.6.0
serenity-rest-assured - 2.6.0
If I use gradle task as below it's giving java.exe error at javaexec in below code
Error: Caused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Java\jdk-17.0.2\bin\java.exe'' finished with non-zero exit value 1
task cucumber() {
dependsOn assemble, testClasses
doLast {
javaexec {
main = "io.cucumber.core.cli.Main"
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
args = ['--plugin', 'pretty',
'--glue', 'xxxxx.stepdefinitions',
'src/integrationTest/resources']
}
}
finalizedBy aggregate
}
Hi there,
Do we have any details with regards to java compatibility with SerrenityBDD.
I found this https://github.com/serenity-bdd/serenity-core/#what-is-the-latest-stable-version-i-should-use
However it doesn't specify the java compatibility.
I have project java project with below versions.
But I get below error while running Cucumber tests in IntelliJ. I doubt this is because of Java compatibilty. Because same combination with
Java 11
andMaven 3.6.3
runs perfectlyCucumber Test Class
IntelliJ edit config
Further in commandline also it gives the same above error.
However I have same setup with
Maven
andJava 11
, it runs fine via both IDE and commandline