Skip to content

Commit

Permalink
Add another failing test to prove #1255
Browse files Browse the repository at this point in the history
  • Loading branch information
asbjornu committed Oct 25, 2022
1 parent 56730f7 commit 094d7c2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/GitVersion.Core.Tests/IntegrationTests/DevelopScenarios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -398,4 +398,17 @@ public void WhenPreventIncrementOfMergedBranchVersionIsSetToFalseForDevelopCommi
fixture.Repository.Branches.Remove(HotfixBranch);
fixture.AssertFullSemver("1.2.0-alpha.19", config);
}

[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");
}
}
}

0 comments on commit 094d7c2

Please sign in to comment.