Skip to content

Commit 8ee6c47

Browse files
committed
Add another failing test to prove #1255
1 parent 85a16f9 commit 8ee6c47

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/GitVersionCore.Tests/IntegrationTests/DevelopScenarios.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,17 @@ public void WhenMultipleDevelopBranchesExistAndCurrentBranchHasIncrementInheritP
204204
fixture.AssertFullSemver("1.1.0-x.1+3");
205205
}
206206
}
207+
208+
[Test]
209+
public void ShouldProvideTheCorrectVersionEvenIfPreReleaseLabelExistsInTheGitTag()
210+
{
211+
using (var fixture = new EmptyRepositoryFixture())
212+
{
213+
fixture.Repository.MakeACommit();
214+
fixture.ApplyTag("1.0.0-oreo.1");
215+
fixture.BranchTo("develop");
216+
fixture.Repository.MakeACommit();
217+
fixture.AssertFullSemver("1.1.0-alpha.1");
218+
}
219+
}
207220
}

0 commit comments

Comments
 (0)