File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
src/test/java/org/testcontainers/examples Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,15 @@ dependencies {
1212 implementation ' org.seleniumhq.selenium:selenium-firefox-driver'
1313 implementation ' org.seleniumhq.selenium:selenium-chrome-driver'
1414
15+ testImplementation platform(' org.junit:junit-bom:5.10.3' )
16+ testImplementation ' org.junit.platform:junit-platform-suite'
1517 testImplementation platform(' io.cucumber:cucumber-bom:7.18.1' )
1618 testImplementation ' io.cucumber:cucumber-java'
17- testImplementation ' io.cucumber:cucumber-junit'
19+ testImplementation ' io.cucumber:cucumber-junit-platform-engine '
1820 testImplementation ' org.testcontainers:selenium'
1921 testImplementation ' org.assertj:assertj-core:3.26.3'
2022}
23+
24+ test {
25+ useJUnitPlatform()
26+ }
Original file line number Diff line number Diff line change 11package org .testcontainers .examples ;
22
3- import io .cucumber .junit .Cucumber ;
4- import io .cucumber .junit .CucumberOptions ;
5- import org .junit .runner .RunWith ;
3+ import io .cucumber .junit .platform .engine .Constants ;
4+ import org .junit .platform .suite .api .ConfigurationParameter ;
5+ import org .junit .platform .suite .api .SelectPackages ;
6+ import org .junit .platform .suite .api .Suite ;
67
7- @ RunWith (Cucumber .class )
8- @ CucumberOptions (plugin = { "pretty" })
8+ @ Suite
9+ @ SelectPackages ("org.testcontainers.examples" )
10+ @ ConfigurationParameter (key = Constants .PLUGIN_PROPERTY_NAME , value = "pretty" )
911public class CucumberTest {}
You can’t perform that action at this time.
0 commit comments