upgrade dependencies, run cucumber as unit test

This commit is contained in:
jns9j04 2025-03-26 09:04:18 +01:00
parent 43cb112a3b
commit f68dbcfdcf
3 changed files with 8 additions and 5 deletions

View File

@ -10,9 +10,11 @@ targetCompatibility = '21'
dependencies {
implementation 'org.codehaus.groovy:groovy:3.0.8'
testImplementation 'io.cucumber:cucumber-java:6.10.4'
testImplementation 'io.cucumber:cucumber-junit:6.10.4'
testImplementation 'junit:junit:4.13.2'
testImplementation 'io.cucumber:cucumber-java:7.21.1'
testImplementation 'io.cucumber:cucumber-junit:7.21.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.3'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.9.3'
}
configurations {

View File

@ -5,7 +5,8 @@ import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions()
@CucumberOptions(plugin = {"pretty", "html:target/cucumber-report.html"},
features = {"src/test/resources"})
public class RunCucumberTest {
}

View File

@ -2,6 +2,6 @@ Feature: Gilded Rose quality
I want to know if the quality is updated properly
Scenario: Checking foo
Given The item as "fixme"
Given The item as "foo"
When I update the quality
Then I should get item as "foo"