Skip to content

Commit 56eaf1a

Browse files
committed
Moved all approval tests to an Approved subfolder
1 parent 916c28d commit 56eaf1a

17 files changed

+49
-28
lines changed

src/GitVersionCore.Tests/GitVersionCore.Tests.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@
176176
</ItemGroup>
177177
<ItemGroup>
178178
<Content Include="FodyWeavers.xml" />
179-
<Content Include="JsonVersionBuilderTests.Json.approved.txt" />
180-
<Content Include="VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForPreRelease.approved.txt" />
181-
<Content Include="VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForPreReleaseWithPadding.approved.txt" />
182-
<Content Include="VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForStable.approved.txt" />
183-
<Content Include="VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForPreRelease.approved.txt" />
184-
<Content Include="VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForStable.approved.txt" />
185-
<Content Include="VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForStableWhenCurrentCommitIsTagged.approved.txt" />
179+
<Content Include="Approved\JsonVersionBuilderTests.Json.approved.txt" />
180+
<Content Include="Approved\VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForPreRelease.approved.txt" />
181+
<Content Include="Approved\VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForPreReleaseWithPadding.approved.txt" />
182+
<Content Include="Approved\VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForStable.approved.txt" />
183+
<Content Include="Approved\VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForPreRelease.approved.txt" />
184+
<Content Include="Approved\VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForStable.approved.txt" />
185+
<Content Include="Approved\VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForStableWhenCurrentCommitIsTagged.approved.txt" />
186186
</ItemGroup>
187187
<ItemGroup>
188188
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />

src/GitVersionCore.Tests/JsonVersionBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ public void Json()
2525

2626
var variables = VariableProvider.GetVariablesFor(semanticVersion, config, false);
2727
var json = JsonOutputFormatter.ToJson(variables);
28-
json.ShouldMatchApproved();
28+
json.ShouldMatchApproved(c => c.SubFolder("Approved"));
2929
}
3030
}

src/GitVersionCore.Tests/VariableProviderTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void ProvidesVariablesInContinuousDeliveryModeForPreRelease()
2929

3030
var vars = VariableProvider.GetVariablesFor(semVer, config, false);
3131

32-
JsonOutputFormatter.ToJson(vars).ShouldMatchApproved();
32+
JsonOutputFormatter.ToJson(vars).ShouldMatchApproved(c => c.SubFolder("Approved"));
3333
}
3434

3535
[Test]
@@ -54,7 +54,7 @@ public void ProvidesVariablesInContinuousDeliveryModeForPreReleaseWithPadding()
5454

5555
var vars = VariableProvider.GetVariablesFor(semVer, config, false);
5656

57-
JsonOutputFormatter.ToJson(vars).ShouldMatchApproved();
57+
JsonOutputFormatter.ToJson(vars).ShouldMatchApproved(c => c.SubFolder("Approved"));
5858
}
5959

6060
[Test]
@@ -78,7 +78,7 @@ public void ProvidesVariablesInContinuousDeploymentModeForPreRelease()
7878

7979
var vars = VariableProvider.GetVariablesFor(semVer, config, false);
8080

81-
JsonOutputFormatter.ToJson(vars).ShouldMatchApproved();
81+
JsonOutputFormatter.ToJson(vars).ShouldMatchApproved(c => c.SubFolder("Approved"));
8282
}
8383

8484
[Test]
@@ -101,7 +101,7 @@ public void ProvidesVariablesInContinuousDeliveryModeForStable()
101101

102102
var vars = VariableProvider.GetVariablesFor(semVer, config, false);
103103

104-
JsonOutputFormatter.ToJson(vars).ShouldMatchApproved();
104+
JsonOutputFormatter.ToJson(vars).ShouldMatchApproved(c => c.SubFolder("Approved"));
105105
}
106106

107107
[Test]
@@ -124,7 +124,7 @@ public void ProvidesVariablesInContinuousDeploymentModeForStable()
124124

125125
var vars = VariableProvider.GetVariablesFor(semVer, config, false);
126126

127-
JsonOutputFormatter.ToJson(vars).ShouldMatchApproved();
127+
JsonOutputFormatter.ToJson(vars).ShouldMatchApproved(c => c.SubFolder("Approved"));
128128
}
129129

130130
[Test]
@@ -150,6 +150,6 @@ public void ProvidesVariablesInContinuousDeploymentModeForStableWhenCurrentCommi
150150

151151
var vars = VariableProvider.GetVariablesFor(semVer, config, true);
152152

153-
JsonOutputFormatter.ToJson(vars).ShouldMatchApproved();
153+
JsonOutputFormatter.ToJson(vars).ShouldMatchApproved(c => c.SubFolder("Approved"));
154154
}
155155
}

0 commit comments

Comments
 (0)