Skip to content

Commit 094d7c2

Browse files
committed
Add another failing test to prove #1255
1 parent 56730f7 commit 094d7c2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/GitVersion.Core.Tests/IntegrationTests/DevelopScenarios.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,4 +398,17 @@ public void WhenPreventIncrementOfMergedBranchVersionIsSetToFalseForDevelopCommi
398398
fixture.Repository.Branches.Remove(HotfixBranch);
399399
fixture.AssertFullSemver("1.2.0-alpha.19", config);
400400
}
401+
402+
[Test]
403+
public void ShouldProvideTheCorrectVersionEvenIfPreReleaseLabelExistsInTheGitTag()
404+
{
405+
using (var fixture = new EmptyRepositoryFixture())
406+
{
407+
fixture.Repository.MakeACommit();
408+
fixture.ApplyTag("1.0.0-oreo.1");
409+
fixture.BranchTo("develop");
410+
fixture.Repository.MakeACommit();
411+
fixture.AssertFullSemver("1.1.0-alpha.1");
412+
}
413+
}
401414
}

0 commit comments

Comments
 (0)