Skip to content

Commit

Permalink
Add another failing test to prove GitTools#1255
Browse files Browse the repository at this point in the history
  • Loading branch information
asbjornu committed Feb 27, 2019
1 parent 6cea23e commit aca64b5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/GitVersionCore.Tests/IntegrationTests/DevelopScenarios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
}

0 comments on commit aca64b5

Please sign in to comment.