Forum Discussion
Nishimura031
Occasional Visitor
two steps, you should be able to execute Cucumber from your own executable jar wherever you are able to execute a jar at all. Notice that you are mixing library version for Cucumber in your pom. I would use the latest version of all libraries. Compare cucumber-java , cucumber-testng and cucumber-junit.
s-glatshtein
4 years agoNew Contributor
About the first part, what do you mean that the jar should be executable? I am running the test class using JUnitCore class, not with CLI.
About the second part, I am using build.gradle and all the latest dependencies for all (or what was the latest). Here's the depedencies i use in my runner program:
dependencies {
// https://mvnrepository.com/artifact/org.testng/testng
// implementation group: 'org.testng', name: 'testng', version: '7.3.0'
implementation group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.testng', name: 'testng', version: '7.3.0'
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine
implementation group: 'io.cucumber', name: 'cucumber-java', version: '6.10.0'
implementation group: 'io.cucumber', name: 'cucumber-junit', version: '6.10.0'
implementation group: 'io.cucumber', name: 'cucumber-testng', version: '6.10.0'
// https://mvnrepository.com/artifact/org.junit.platform/junit-platform-launcher
implementation group: 'org.junit.platform', name: 'junit-platform-launcher', version: '1.7.0'
}
- s-glatshtein4 years agoNew Contributor
Anyone has any ideas? How can i use cucumber with these CucumberOptions?
Related Content
- 11 months ago
Recent Discussions
- 4 months ago
- 5 months ago