1+ using GitVersion . Configuration ;
12using GitVersion . Core . Tests . Helpers ;
23
34namespace GitVersion . Core . Tests . IntegrationTests ;
@@ -14,69 +15,70 @@ public void GitflowComplexExample()
1415 const string release1Branch = "release/1.1.0" ;
1516 const string release2Branch = "release/1.2.0" ;
1617 const string hotfixBranch = "hotfix/hf" ;
18+ var configuration = GitFlowConfigurationBuilder . New . Build ( ) ;
1719
1820 using var fixture = new BaseGitFlowRepositoryFixture ( "1.0.0" ) ;
19- fixture . AssertFullSemver ( "1.1.0-alpha.1" ) ;
21+ fixture . AssertFullSemver ( "1.1.0-alpha.1" , configuration ) ;
2022
2123 // Feature 1
2224 fixture . BranchTo ( feature1Branch ) ;
2325 fixture . MakeACommit ( "added feature 1" ) ;
24- fixture . AssertFullSemver ( "1.1.0-f1.1+2" ) ;
26+ fixture . AssertFullSemver ( "1.1.0-f1.1+2" , configuration ) ;
2527 fixture . Checkout ( developBranch ) ;
2628 fixture . MergeNoFF ( feature1Branch ) ;
2729 fixture . Repository . Branches . Remove ( fixture . Repository . Branches [ feature1Branch ] ) ;
28- fixture . AssertFullSemver ( "1.1.0-alpha.3" ) ;
30+ fixture . AssertFullSemver ( "1.1.0-alpha.3" , configuration ) ;
2931
3032 // Release 1.1.0
3133 fixture . BranchTo ( release1Branch ) ;
3234 fixture . MakeACommit ( "release stabilization" ) ;
33- fixture . AssertFullSemver ( "1.1.0-beta.1+4" ) ;
35+ fixture . AssertFullSemver ( "1.1.0-beta.1+4" , configuration ) ;
3436 fixture . Checkout ( MainBranch ) ;
3537 fixture . MergeNoFF ( release1Branch ) ;
36- fixture . AssertFullSemver ( "1.1.0-5" ) ;
38+ fixture . AssertFullSemver ( "1.1.0-5" , configuration ) ;
3739 fixture . ApplyTag ( "1.1.0" ) ;
38- fixture . AssertFullSemver ( "1.1.0" ) ;
40+ fixture . AssertFullSemver ( "1.1.0" , configuration ) ;
3941 fixture . Checkout ( developBranch ) ;
4042 fixture . MergeNoFF ( release1Branch ) ;
4143 fixture . Repository . Branches . Remove ( fixture . Repository . Branches [ release1Branch ] ) ;
42- fixture . AssertFullSemver ( "1.2.0-alpha.1" ) ;
44+ fixture . AssertFullSemver ( "1.2.0-alpha.1" , configuration ) ;
4345
4446 // Feature 2
4547 fixture . BranchTo ( feature2Branch ) ;
4648 fixture . MakeACommit ( "added feature 2" ) ;
47- fixture . AssertFullSemver ( "1.2.0-f2.1+2" ) ;
49+ fixture . AssertFullSemver ( "1.2.0-f2.1+2" , configuration ) ;
4850 fixture . Checkout ( developBranch ) ;
4951 fixture . MergeNoFF ( feature2Branch ) ;
5052 fixture . Repository . Branches . Remove ( fixture . Repository . Branches [ feature2Branch ] ) ;
51- fixture . AssertFullSemver ( "1.2.0-alpha.3" ) ;
53+ fixture . AssertFullSemver ( "1.2.0-alpha.3" , configuration ) ;
5254
5355 // Release 1.2.0
5456 fixture . BranchTo ( release2Branch ) ;
5557 fixture . MakeACommit ( "release stabilization" ) ;
56- fixture . AssertFullSemver ( "1.2.0-beta.1+8" ) ;
58+ fixture . AssertFullSemver ( "1.2.0-beta.1+8" , configuration ) ;
5759 fixture . Checkout ( MainBranch ) ;
5860 fixture . MergeNoFF ( release2Branch ) ;
59- fixture . AssertFullSemver ( "1.2.0-5" ) ;
61+ fixture . AssertFullSemver ( "1.2.0-5" , configuration ) ;
6062 fixture . ApplyTag ( "1.2.0" ) ;
61- fixture . AssertFullSemver ( "1.2.0" ) ;
63+ fixture . AssertFullSemver ( "1.2.0" , configuration ) ;
6264 fixture . Checkout ( developBranch ) ;
6365 fixture . MergeNoFF ( release2Branch ) ;
6466 fixture . Repository . Branches . Remove ( fixture . Repository . Branches [ release2Branch ] ) ;
65- fixture . AssertFullSemver ( "1.3.0-alpha.1" ) ;
67+ fixture . AssertFullSemver ( "1.3.0-alpha.1" , configuration ) ;
6668
6769 // Hotfix
6870 fixture . Checkout ( MainBranch ) ;
6971 fixture . BranchTo ( hotfixBranch ) ;
7072 fixture . MakeACommit ( "added hotfix" ) ;
71- fixture . AssertFullSemver ( "1.2.1-beta.1+1" ) ;
73+ fixture . AssertFullSemver ( "1.2.1-beta.1+1" , configuration ) ;
7274 fixture . Checkout ( MainBranch ) ;
7375 fixture . MergeNoFF ( hotfixBranch ) ;
74- fixture . AssertFullSemver ( "1.2.1-2" ) ;
76+ fixture . AssertFullSemver ( "1.2.1-2" , configuration ) ;
7577 fixture . ApplyTag ( "1.2.1" ) ;
76- fixture . AssertFullSemver ( "1.2.1" ) ;
78+ fixture . AssertFullSemver ( "1.2.1" , configuration ) ;
7779 fixture . Checkout ( developBranch ) ;
7880 fixture . MergeNoFF ( hotfixBranch ) ;
7981 fixture . Repository . Branches . Remove ( fixture . Repository . Branches [ hotfixBranch ] ) ;
80- fixture . AssertFullSemver ( "1.3.0-alpha.2" ) ;
82+ fixture . AssertFullSemver ( "1.3.0-alpha.2" , configuration ) ;
8183 }
8284}
0 commit comments