Skip to content

Commit

Permalink
Explicitly add Mockito agent
Browse files Browse the repository at this point in the history
  • Loading branch information
schnapster committed Dec 22, 2024
1 parent d1d466b commit f08aee8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ apply plugin: 'com.bmuschko.docker-remote-api'

configurations {
flywayMigration
mockitoAgent

// fucks with spring boot jar, we dont need it anyways
// be VERY careful and test the produced jar if ever reenabled
Expand Down Expand Up @@ -337,8 +338,11 @@ dependencies {
testImplementation "org.testcontainers:testcontainers"
testImplementation "org.testcontainers:selenium"
testImplementation "com.codeborne:selenide:$selenideVersion"
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
testImplementation "org.awaitility:awaitility"

testImplementation "org.mockito:mockito-core"
mockitoAgent("org.mockito:mockito-core") { transitive = false }
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
}

tasks.withType(JavaCompile).configureEach {
Expand Down Expand Up @@ -544,6 +548,7 @@ generateJooq {
}

test {
jvmArgs("-javaagent:${configurations.mockitoAgent.asPath}")
dependsOn(flywayMigrate)
doLast {
stopCodegenDbContainerPost.start()
Expand Down

0 comments on commit f08aee8

Please sign in to comment.