Skip to content

Commit

Permalink
Introduces mocking library 'mockk' (detekt#2055)
Browse files Browse the repository at this point in the history
This removes some boilerplate code from the HtmlOuputFormatTest
introduced by detekt#1975.
  • Loading branch information
schalkms authored and Stanislav Myachenkov committed Dec 9, 2019
1 parent 17720ba commit 838babe
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 584 deletions.
2 changes: 2 additions & 0 deletions detekt-cli/build.gradle.kts
Expand Up @@ -7,6 +7,7 @@ val spekVersion: String by project
val jcommanderVersion: String by project
val detektVersion: String by project
val reflectionsVersion: String by project
val mockkVersion: String by project

// implementation.extendsFrom kotlin is not enough for using cli in a gradle task - #58
configurations.testImplementation.get().extendsFrom(configurations.kotlinTest.get())
Expand All @@ -20,6 +21,7 @@ dependencies {
testImplementation(project(":detekt-test"))
testImplementation(project(":detekt-rules"))
testImplementation("org.reflections:reflections:$reflectionsVersion")
testImplementation("io.mockk:mockk:$mockkVersion")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:$junitPlatformVersion")
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spekVersion")
}
Expand Down

This file was deleted.

0 comments on commit 838babe

Please sign in to comment.