Skip to content

Instantly share code, notes, and snippets.

@Preposterone
Created February 9, 2022 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Preposterone/939008f0ab5876b5057e4550393ac4b0 to your computer and use it in GitHub Desktop.
Save Preposterone/939008f0ab5876b5057e4550393ac4b0 to your computer and use it in GitHub Desktop.
Minimal build.gradle with jUnit 5 supporting ParameterizedTest annotation
plugins {
id 'java'
}
repositories {
mavenCentral()
}
def jUnitVersion = '5.8.2'
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:${jUnitVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${jUnitVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${jUnitVersion}"
}
test {
useJUnitPlatform()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment