From aca64b5e2ca8ae5bc4416306aa2010963448c9f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Ulsberg?= Date: Wed, 27 Feb 2019 14:22:31 +0100 Subject: [PATCH] Add another failing test to prove #1255 --- .../IntegrationTests/DevelopScenarios.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/GitVersionCore.Tests/IntegrationTests/DevelopScenarios.cs b/src/GitVersionCore.Tests/IntegrationTests/DevelopScenarios.cs index c1506cd7f8..e5dea6e361 100644 --- a/src/GitVersionCore.Tests/IntegrationTests/DevelopScenarios.cs +++ b/src/GitVersionCore.Tests/IntegrationTests/DevelopScenarios.cs @@ -204,4 +204,17 @@ public void WhenMultipleDevelopBranchesExistAndCurrentBranchHasIncrementInheritP fixture.AssertFullSemver("1.1.0-x.1+3"); } } + + [Test] + public void ShouldProvideTheCorrectVersionEvenIfPreReleaseLabelExistsInTheGitTag() + { + using (var fixture = new EmptyRepositoryFixture()) + { + fixture.Repository.MakeACommit(); + fixture.ApplyTag("1.0.0-oreo.1"); + fixture.BranchTo("develop"); + fixture.Repository.MakeACommit(); + fixture.AssertFullSemver("1.1.0-alpha.1"); + } + } }