Skip to content

Commit 3cdb9f8

Browse files
author
Gary Lockett
committed
cover more default branch switching scenarios
Signed-off-by: Gary Lockett <[email protected]>
1 parent 45e0195 commit 3cdb9f8

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

feature/default-branch-switching.feature

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,49 @@ Feature: Default branch switching
4040
| 1.3.x |
4141
And the default branch should be "1.3.x"
4242

43-
Scenario: A pre-existing branch of a greater major release is set as default branch on release
43+
Scenario: A new minor branch on a pre-existing major branch is created and set as default branch on release
44+
Given following existing branches:
45+
| branch |
46+
| 1.0.x |
47+
| 1.1.x |
48+
| 1.2.x |
49+
| 2.0.x |
50+
And following open milestones:
51+
| name |
52+
| 2.0.0 |
53+
And the default branch is "1.0.x"
54+
When I close milestone "2.0.0"
55+
Then these should be the existing branches:
56+
| branch |
57+
| 1.0.x |
58+
| 1.1.x |
59+
| 1.2.x |
60+
| 2.0.x |
61+
| 2.1.x |
62+
And the default branch should be "2.1.x"
63+
64+
Scenario: A pre-existing branch of a new major release is not set as default branch on release
65+
Given following existing branches:
66+
| branch |
67+
| 1.0.x |
68+
| 1.1.x |
69+
| 1.2.x |
70+
| 2.0.x |
71+
And following open milestones:
72+
| name |
73+
| 1.2.0 |
74+
And the default branch is "1.0.x"
75+
When I close milestone "1.2.0"
76+
Then these should be the existing branches:
77+
| branch |
78+
| 1.0.x |
79+
| 1.1.x |
80+
| 1.2.x |
81+
| 1.3.x |
82+
| 2.0.x |
83+
And the default branch should be "1.3.x"
84+
85+
Scenario: A pre-existing minor branch of a greater major release is set as default branch on release
4486
Given following existing branches:
4587
| branch |
4688
| 1.0.x |

0 commit comments

Comments
 (0)