File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 90
90
<Compile Include =" IntegrationTests\HotfixBranchScenarios.cs" />
91
91
<Compile Include =" IntegrationTests\ReleaseBranchScenarios.cs" />
92
92
<Compile Include =" IntegrationTests\SwitchingToGitFlowScenarios.cs" />
93
+ <Compile Include =" IntegrationTests\VersionBumpingScenarios.cs" />
93
94
<Compile Include =" IntegrationTests\WikiScenarios.cs" />
94
95
<Compile Include =" IntegrationTests\OtherBranchScenarios.cs" />
95
96
<Compile Include =" Helpers\Constants.cs" />
Original file line number Diff line number Diff line change
1
+ using GitVersion ;
2
+ using NUnit . Framework ;
3
+
4
+ [ TestFixture ]
5
+ public class VersionBumpingScenarios
6
+ {
7
+ [ Test ]
8
+ public void AppliedPrereleaseTagCausesBump ( )
9
+ {
10
+ var configuration = new Config ( ) ;
11
+ configuration . Branches [ "master" ] . Tag = "pre" ;
12
+ using ( var fixture = new EmptyRepositoryFixture ( configuration ) )
13
+ {
14
+ fixture . Repository . MakeACommit ( ) ;
15
+ fixture . Repository . MakeATaggedCommit ( "1.0.0-pre.1" ) ;
16
+ fixture . Repository . MakeACommit ( ) ;
17
+
18
+ fixture . AssertFullSemver ( "1.0.0-pre.2+1" ) ;
19
+ }
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments