File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
GitVersionCore.Tests/IntegrationTests/GitFlow Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 5
5
[ TestFixture ]
6
6
public class DevelopScenarios
7
7
{
8
+ [ Test ]
9
+ public void WhenDevelopBranchedFromTaggedCommitOnMasterVersionDoesNotChange ( )
10
+ {
11
+ using ( var fixture = new EmptyRepositoryFixture ( new Config ( ) ) )
12
+ {
13
+ fixture . Repository . MakeATaggedCommit ( "1.0.0" ) ;
14
+ fixture . Repository . CreateBranch ( "develop" ) . Checkout ( ) ;
15
+ fixture . AssertFullSemver ( "1.0.0+0" ) ;
16
+ }
17
+ }
18
+
8
19
[ Test ]
9
20
public void WhenDevelopBranchedFromMaster_MinorIsIncreased ( )
10
21
{
11
22
using ( var fixture = new EmptyRepositoryFixture ( new Config ( ) ) )
12
23
{
13
24
fixture . Repository . MakeATaggedCommit ( "1.0.0" ) ;
14
25
fixture . Repository . CreateBranch ( "develop" ) . Checkout ( ) ;
15
- fixture . AssertFullSemver ( "1.1.0-unstable.0+0" ) ;
26
+ fixture . Repository . MakeACommit ( ) ;
27
+ fixture . AssertFullSemver ( "1.1.0-unstable.1+1" ) ;
16
28
}
17
29
}
18
30
@@ -23,6 +35,7 @@ public void MergingReleaseBranchBackIntoDevelopWithoutMergingToMaster_DoesNotBum
23
35
{
24
36
fixture . Repository . MakeATaggedCommit ( "1.0.0" ) ;
25
37
fixture . Repository . CreateBranch ( "develop" ) . Checkout ( ) ;
38
+ fixture . Repository . MakeACommit ( ) ;
26
39
fixture . Repository . CreateBranch ( "release-2.0.0" ) . Checkout ( ) ;
27
40
fixture . AssertFullSemver ( "2.0.0-beta.1+0" ) ;
28
41
fixture . Repository . Checkout ( "develop" ) ;
You can’t perform that action at this time.
0 commit comments