Skip to content

Commit 520996b

Browse files
committed
Add another failing test to prove #1255
1 parent 72501fd commit 520996b

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
@@ -299,4 +299,17 @@ public void CommitsSinceVersionSourceShouldNotGoDownUponMergingFeatureOnlyToDeve
299299
fixture.AssertFullSemver(config, expectedFullSemVer);
300300
}
301301
}
302+
303+
[Test]
304+
public void ShouldProvideTheCorrectVersionEvenIfPreReleaseLabelExistsInTheGitTag()
305+
{
306+
using (var fixture = new EmptyRepositoryFixture())
307+
{
308+
fixture.Repository.MakeACommit();
309+
fixture.ApplyTag("1.0.0-oreo.1");
310+
fixture.BranchTo("develop");
311+
fixture.Repository.MakeACommit();
312+
fixture.AssertFullSemver("1.1.0-alpha.1");
313+
}
314+
}
302315
}

0 commit comments

Comments
 (0)