Test case "commitOptions are passed through to git command" would fail on my machine due to custom pretty format settings:
~/.gitconfig:
[format]
pretty = %Cgreen%ci:%C(yellow)%d%Creset|%G?|%s (%Cred%h%Creset by %C(bold blue)%an%Creset) %ae [%GS]
This resulted in the following test failure:
Condition not satisfied:
newestCommit.contains("Signed-off-by: Unit Test <unit@test>")
| |
| false
2023-03-26 15:23:54 +0200: (myBranch)|N|[Gradle Release Plugin] - new version commit: '1.1'. (40b3a21 by Unit Test) unit@test []
at net.researchgate.release.GitReleasePluginTests.commitOptions are passed through to git command(GitReleasePluginTests.groovy:133)
This is a simple fix which tells the test to request the information it needs ("pretty=medium") rather than expecting the defaults to be right.
Test case "commitOptions are passed through to git command" would fail on my machine due to custom pretty format settings:
~/.gitconfig:
This resulted in the following test failure:
This is a simple fix which tells the test to request the information it needs ("pretty=medium") rather than expecting the defaults to be right.