diff --git a/tools/tagger-plugin/src/functionalTest/kotlin/com/zegreatrob/tools/tagger/TagFunctionalTest.kt b/tools/tagger-plugin/src/functionalTest/kotlin/com/zegreatrob/tools/tagger/TagFunctionalTest.kt index 62897c5..eb8ddb3 100644 --- a/tools/tagger-plugin/src/functionalTest/kotlin/com/zegreatrob/tools/tagger/TagFunctionalTest.kt +++ b/tools/tagger-plugin/src/functionalTest/kotlin/com/zegreatrob/tools/tagger/TagFunctionalTest.kt @@ -1,6 +1,5 @@ package com.zegreatrob.tools.tagger -import com.zegreatrob.tools.adapter.git.runProcess import org.gradle.testkit.runner.GradleRunner import org.junit.jupiter.api.io.TempDir import java.io.File @@ -37,9 +36,6 @@ class TagFunctionalTest : TagTestSpec { } override fun execute(version: String): TestResult { - runProcess(listOf("git", "config", "user.email", "test@zegreatrob.com"), this.projectDir.absolutePath) - runProcess(listOf("git", "config", "user.name", "RoB as Test"), this.projectDir.absolutePath) - val runner = GradleRunner.create() runner.forwardOutput() runner.withPluginClasspath() diff --git a/tools/tagger-test/src/jvmMain/kotlin/com/zegreatrob/tools/tagger/TagTestSpec.kt b/tools/tagger-test/src/jvmMain/kotlin/com/zegreatrob/tools/tagger/TagTestSpec.kt index 209f4e0..0e60677 100644 --- a/tools/tagger-test/src/jvmMain/kotlin/com/zegreatrob/tools/tagger/TagTestSpec.kt +++ b/tools/tagger-test/src/jvmMain/kotlin/com/zegreatrob/tools/tagger/TagTestSpec.kt @@ -1,6 +1,7 @@ package com.zegreatrob.tools.tagger import com.zegreatrob.tools.adapter.git.GitAdapter +import com.zegreatrob.tools.adapter.git.runProcess import com.zegreatrob.tools.test.git.disableGpgSign import org.ajoberstar.grgit.Grgit import org.ajoberstar.grgit.operation.CommitOp @@ -49,6 +50,9 @@ interface TagTestSpec { ) grgit.push() + runProcess(listOf("git", "config", "user.email", "test@zegreatrob.com"), this.projectDir.absolutePath) + runProcess(listOf("git", "config", "user.name", "RoB as Test"), this.projectDir.absolutePath) + val expectedVersion = "1.0.0" val result = execute(expectedVersion) assertIsNot(result, message = "$result")