-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set testing framework versions in build script, and bump them to the …
…latest versions (#337) --------- Signed-off-by: Jean Gauthier <[email protected]>
- Loading branch information
1 parent
f1edf99
commit a6ec659
Showing
13 changed files
with
112 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
[versions] | ||
asmVersion = "9.7.1" | ||
spockframework = "2.3-groovy-3.0" | ||
junit4 = "4.13.2" | ||
junit5Jupiter = "5.11.2" | ||
junitPlatformLauncher = "1.11.2" | ||
mockito = "4.11.0" | ||
spock1 = "1.3-groovy-2.5" | ||
spock2 = "2.3-groovy-3.0" | ||
testNg = "5.11.2" | ||
|
||
[libraries] | ||
spock-bom = { module = "org.spockframework:spock-bom", version.ref = "spockframework" } | ||
spock-bom = { module = "org.spockframework:spock-bom", version.ref = "spock2" } | ||
spock-core.module = "org.spockframework:spock-core" | ||
spock-junit4.module = "org.spockframework:spock-junit4" | ||
nekohtml = "net.sourceforge.nekohtml:nekohtml:1.9.22" | ||
asm = { module = "org.ow2.asm:asm", version.ref = "asmVersion" } | ||
jetbrains-annotations = "org.jetbrains:annotations:26.0.1" | ||
codenarc = "org.codenarc:CodeNarc:3.5.0-groovy-4.0" | ||
junit4 = { module = "junit:junit", version.ref = "junit4" } | ||
junit5-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit5Jupiter" } | ||
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher", version.ref = "junitPlatformLauncher" } | ||
mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" } | ||
spock1 = { module = "org.spockframework:spock-core", version.ref = "spock1" } | ||
spock2 = { module = "org.spockframework:spock-core", version.ref = "spock2" } | ||
testNg = { module = "org.testng:testng", version.ref = "testNg" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
plugin/src/test/groovy/org/gradle/testretry/TestFrameworkVersionData.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Copyright 2023 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.gradle.testretry | ||
|
||
trait TestFrameworkVersionData { | ||
|
||
String junit4Dependency() { | ||
"junit:junit:" + System.getProperty("junit4Version") | ||
} | ||
|
||
String jupiterDependency() { | ||
"org.junit.jupiter:junit-jupiter:" + System.getProperty("junit5Version") | ||
} | ||
|
||
String jupiterApiDependency() { | ||
"org.junit.jupiter:junit-jupiter-api:" + System.getProperty("junit5Version") | ||
} | ||
|
||
String jupiterEngineDependency() { | ||
"org.junit.jupiter:junit-jupiter-engine:" + System.getProperty("junit5Version") | ||
} | ||
|
||
String jupiterParamsDependency() { | ||
"org.junit.jupiter:junit-jupiter-params:" + System.getProperty("junit5Version") | ||
} | ||
|
||
String junitVintageEngineDependency() { | ||
"org.junit.vintage:junit-vintage-engine:" + System.getProperty("junit5Version") | ||
} | ||
|
||
String junitPlatformLauncherDependency() { | ||
"org.junit.platform:junit-platform-launcher:" + System.getProperty("junitPlatformLauncherVersion") | ||
} | ||
|
||
String mockitoDependency() { | ||
"org.mockito:mockito-core:" + System.getProperty("mockitoVersion") | ||
} | ||
|
||
String spock1Dependency() { | ||
"org.spockframework:spock-core:" + System.getProperty("spock1Version") | ||
} | ||
|
||
String spock2Dependency() { | ||
"org.spockframework:spock-core:" + System.getProperty("spock2Version") | ||
} | ||
|
||
String testNgDependency() { | ||
"org.testng:testng:" + System.getProperty("testNgVersion") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters