Skip to content

Commit

Permalink
test: avoid string templates as parameters in logger calls
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Apr 13, 2023
1 parent bb9ad82 commit 9bc1105
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/kotlin/org/danilopianini/gradle/test/Tests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ class Tests : StringSpec(
.scan()
scan.getResourcesWithLeafName("test.yaml")
.flatMap {
log.debug("Found test list in $it")
log.debug("Found test list in {}", it)
val yamlFile = File(it.classpathElementFile.absolutePath + "/" + it.path)
val testConfiguration = Config {
addSpec(Root)
}.from.yaml.inputStream(it.open())
testConfiguration[Root.tests].map { it to yamlFile.parentFile }
}
.forEach { (test, location) ->
log.debug("Test to be executed: $test from $location")
log.debug("Test to be executed: {} from {}", test, location)
val testFolder = folder {
location.copyRecursively(this.root)
}
log.debug("Test has been copied into $testFolder and is ready to get executed")
log.debug("Test has been copied into {} and is ready to get executed", testFolder)
test.description {
val result = GradleRunner.create()
.withProjectDir(testFolder.root)
Expand Down

0 comments on commit 9bc1105

Please sign in to comment.