Skip to content

Commit

Permalink
Update versions of test frameworks to test against
Browse files Browse the repository at this point in the history
Signed-off-by: Pavlo Shevchenko <pshevchenko@gradle.com>
  • Loading branch information
pshevche committed Feb 27, 2023
1 parent 8164379 commit 6ea8f14
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ Other versions are likely to work as well, but are not tested.
|4.13.2

|JUnit5
|5.8.2
|5.9.2

|Spock
|2.0-groovy-3.0
|2.3-groovy-3.0

|TestNG
|7.4.0
|7.5
|===

=== Parameterized tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class JUnit4ViaJUnitVintageFuncTest extends JUnit4FuncTest {
return '''
dependencies {
testImplementation "junit:junit:4.13.2"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.8.2"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.8.2"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.9.2"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.9.2"
}
test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ class JUnit5FuncTest extends AbstractFrameworkFuncTest {
protected String buildConfiguration() {
return """
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.9.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.2'
}
test {
useJUnitPlatform()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Spock2FuncTest extends SpockBaseJunit5FuncTest {
protected String buildConfiguration() {
return """
dependencies {
implementation 'org.spockframework:spock-core:2.0-groovy-3.0'
implementation 'org.spockframework:spock-core:2.3-groovy-3.0'
}
test {
useJUnitPlatform()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class SpockBaseJunit5FuncTest extends SpockFuncTest {
protected String buildConfiguration() {
return """
dependencies {
implementation 'org.spockframework:spock-core:2.0-groovy-3.0'
implementation 'org.spockframework:spock-core:2.3-groovy-3.0'
}
test {
useJUnitPlatform()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class SpockViaJUnitVintageFuncTest extends SpockBaseJunit5FuncTest {
dependencies {
implementation "org.codehaus.groovy:groovy:2.5.8"
testImplementation "org.spockframework:spock-core:1.3-groovy-2.5"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.8.2"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.8.2"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.9.2"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.9.2"
}
test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TestNGFuncTest extends AbstractFrameworkFuncTest {
def setup() {
buildFile << """
dependencies {
testImplementation 'org.testng:testng:7.4.0'
testImplementation 'org.testng:testng:7.5'
}
"""
}
Expand Down Expand Up @@ -517,7 +517,7 @@ class TestNGFuncTest extends AbstractFrameworkFuncTest {
protected String buildConfiguration() {
return """
dependencies {
testImplementation 'org.testng:testng:7.4.0'
testImplementation 'org.testng:testng:7.5'
}
test {
useTestNG()
Expand Down
6 changes: 3 additions & 3 deletions samples/sample-junit5/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ repositories {
}

dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.8.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2")
}

tasks.test {
Expand Down

0 comments on commit 6ea8f14

Please sign in to comment.