-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[patch] fixing test problem with user configuration
- Loading branch information
1 parent
8da26ff
commit a9b4b87
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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", "[email protected]"), this.projectDir.absolutePath) | ||
runProcess(listOf("git", "config", "user.name", "RoB as Test"), this.projectDir.absolutePath) | ||
|
||
val runner = GradleRunner.create() | ||
runner.forwardOutput() | ||
runner.withPluginClasspath() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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", "[email protected]"), 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<TestResult.Failure>(result, message = "$result") | ||
|