Skip to content

Commit

Permalink
Merge pull request #6516 from planetf1/gradletest
Browse files Browse the repository at this point in the history
#6515 ensure gradle runs all junit4/5 tests
  • Loading branch information
planetf1 authored May 3, 2022
2 parents 5880638 + 3b0c9f7 commit fd72cc9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
14 changes: 13 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ allprojects {
elasticsearchVersion = '8.0.1'
findbugsVersion = '3.0.2'
glassfishVersion = '1.1.4'
gremlinVersion = '3.6.0'
gremlinVersion = '3.5.2'
groovyVersion = '3.0.9'
guavaVersion = '31.1-jre'
hamcrestVersion = '2.2'
Expand Down Expand Up @@ -272,6 +272,7 @@ allprojects {
testImplementation("org.junit.jupiter:junit-jupiter-engine:${junitjupiterVersion}")
testImplementation("org.junit.jupiter:junit-platform-runner:${junitplatformVersion}")
testImplementation("org.junit.jupiter:junit-platform-suite-api:${junitplatformVersion}")
testImplementation("org.junit.vintage:junit-vintage-engine:${junitplatformVersion}")
testImplementation("org.mockito:mockito-core:${mockitoVersion}")
testImplementation("org.mockito:mockito-junit-jupiter:${mockitoVersion}")
testImplementation("org.mockito:mockito-inline:${mockitoVersion}")
Expand All @@ -290,6 +291,17 @@ allprojects {
toolVersion = "0.8.8"
}

// Allow for tests to be run in all projects
test {
useJUnitPlatform()
}
dependencies {
testImplementation("junit:junit")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine")
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
}

publishing {
publications {
maven(MavenPublication) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ description = 'Open Lineage Janus Connector'
java {
withJavadocJar()
}

test {
filter {
excludeTestsMatching "*.OpenLineageGraphValidationTests"
}
}

0 comments on commit fd72cc9

Please sign in to comment.