Skip to content

Commit 772d9f5

Browse files
committed
Restructure test projects
1 parent 997bb2f commit 772d9f5

File tree

46 files changed

+363
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+363
-73
lines changed

.github/workflows/release-all.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,23 @@ jobs:
7171
run: |
7272
dir
7373
dotnet build ./src/Aliencube.AzureFunctions.Extensions.Configuration.AppSettings -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal
74+
dotnet build ./test/Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests -c Release
7475
7576
- name: Build solution for Configuration.Json
7677
if: steps.release.outputs.module == 'configjson'
7778
shell: pwsh
7879
run: |
7980
dir
8081
dotnet build ./src/Aliencube.AzureFunctions.Extensions.Configuration.Json -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal
82+
dotnet build ./test/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests -c Release
8183
8284
- name: Build solution for DependencyInjection
8385
if: steps.release.outputs.module == 'di'
8486
shell: pwsh
8587
run: |
8688
dir
8789
dotnet build ./src/Aliencube.AzureFunctions.Extensions.DependencyInjection -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal
90+
dotnet build ./test/Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests -c Release
8891
8992
- name: Build solution for OpenApi
9093
if: steps.release.outputs.module == 'swagger'

Aliencube.AzureFunctions.Extensions.sln

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Ex
2121
EndProject
2222
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests", "test\Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests\Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests.csproj", "{49C186AD-802E-4C6A-86B1-2092D3FC6660}"
2323
EndProject
24-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Tests.Fakes", "test\Aliencube.AzureFunctions.Tests.Fakes\Aliencube.AzureFunctions.Tests.Fakes.csproj", "{16B414D3-F4E4-4236-A7C4-75742626C2C1}"
25-
EndProject
2624
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.FunctionAppV2", "src\Aliencube.AzureFunctions.FunctionAppV2\Aliencube.AzureFunctions.FunctionAppV2.csproj", "{515EB3CC-7FD5-4495-92EF-BB01ECAF9556}"
2725
EndProject
2826
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.FunctionAppV2.Tests", "test\Aliencube.AzureFunctions.FunctionAppV2.Tests\Aliencube.AzureFunctions.FunctionAppV2.Tests.csproj", "{8C565D1A-D0B4-4901-A592-88862E8C6962}"
@@ -47,7 +45,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Ex
4745
EndProject
4846
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Extensions.OpenApi.CLI.Tests", "test\Aliencube.AzureFunctions.Extensions.OpenApi.CLI.Tests\Aliencube.AzureFunctions.Extensions.OpenApi.CLI.Tests.csproj", "{65AED6F0-D27E-4D6E-BA42-AD6EE1338082}"
4947
EndProject
50-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests", "test\Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests\Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests.csproj", "{F0899514-88DC-4CBF-A392-825BDC094689}"
48+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests", "test\Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests\Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests.csproj", "{F0899514-88DC-4CBF-A392-825BDC094689}"
49+
EndProject
50+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests.Fakes", "test\Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests.Fakes\Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests.Fakes.csproj", "{AC89B7CF-0FA5-49EE-97A8-AB39A5F211A8}"
51+
EndProject
52+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests.Fakes", "test\Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests.Fakes\Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests.Fakes.csproj", "{A50319A4-2476-4FD2-B066-303A3F7CCF73}"
53+
EndProject
54+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Extensions.OpenApi.Tests.Fakes", "test\Aliencube.AzureFunctions.Extensions.OpenApi.Tests.Fakes\Aliencube.AzureFunctions.Extensions.OpenApi.Tests.Fakes.csproj", "{5C2331B8-EF38-48F3-A060-175530F44F8B}"
5155
EndProject
5256
Global
5357
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -63,10 +67,6 @@ Global
6367
{49C186AD-802E-4C6A-86B1-2092D3FC6660}.Debug|Any CPU.Build.0 = Debug|Any CPU
6468
{49C186AD-802E-4C6A-86B1-2092D3FC6660}.Release|Any CPU.ActiveCfg = Release|Any CPU
6569
{49C186AD-802E-4C6A-86B1-2092D3FC6660}.Release|Any CPU.Build.0 = Release|Any CPU
66-
{16B414D3-F4E4-4236-A7C4-75742626C2C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
67-
{16B414D3-F4E4-4236-A7C4-75742626C2C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
68-
{16B414D3-F4E4-4236-A7C4-75742626C2C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
69-
{16B414D3-F4E4-4236-A7C4-75742626C2C1}.Release|Any CPU.Build.0 = Release|Any CPU
7070
{515EB3CC-7FD5-4495-92EF-BB01ECAF9556}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
7171
{515EB3CC-7FD5-4495-92EF-BB01ECAF9556}.Debug|Any CPU.Build.0 = Debug|Any CPU
7272
{515EB3CC-7FD5-4495-92EF-BB01ECAF9556}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -119,14 +119,25 @@ Global
119119
{F0899514-88DC-4CBF-A392-825BDC094689}.Debug|Any CPU.Build.0 = Debug|Any CPU
120120
{F0899514-88DC-4CBF-A392-825BDC094689}.Release|Any CPU.ActiveCfg = Release|Any CPU
121121
{F0899514-88DC-4CBF-A392-825BDC094689}.Release|Any CPU.Build.0 = Release|Any CPU
122+
{AC89B7CF-0FA5-49EE-97A8-AB39A5F211A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
123+
{AC89B7CF-0FA5-49EE-97A8-AB39A5F211A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
124+
{AC89B7CF-0FA5-49EE-97A8-AB39A5F211A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
125+
{AC89B7CF-0FA5-49EE-97A8-AB39A5F211A8}.Release|Any CPU.Build.0 = Release|Any CPU
126+
{A50319A4-2476-4FD2-B066-303A3F7CCF73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
127+
{A50319A4-2476-4FD2-B066-303A3F7CCF73}.Debug|Any CPU.Build.0 = Debug|Any CPU
128+
{A50319A4-2476-4FD2-B066-303A3F7CCF73}.Release|Any CPU.ActiveCfg = Release|Any CPU
129+
{A50319A4-2476-4FD2-B066-303A3F7CCF73}.Release|Any CPU.Build.0 = Release|Any CPU
130+
{5C2331B8-EF38-48F3-A060-175530F44F8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
131+
{5C2331B8-EF38-48F3-A060-175530F44F8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
132+
{5C2331B8-EF38-48F3-A060-175530F44F8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
133+
{5C2331B8-EF38-48F3-A060-175530F44F8B}.Release|Any CPU.Build.0 = Release|Any CPU
122134
EndGlobalSection
123135
GlobalSection(SolutionProperties) = preSolution
124136
HideSolutionNode = FALSE
125137
EndGlobalSection
126138
GlobalSection(NestedProjects) = preSolution
127139
{EE506010-80F2-40CD-BE0E-861474560592} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
128140
{49C186AD-802E-4C6A-86B1-2092D3FC6660} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
129-
{16B414D3-F4E4-4236-A7C4-75742626C2C1} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
130141
{515EB3CC-7FD5-4495-92EF-BB01ECAF9556} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
131142
{8C565D1A-D0B4-4901-A592-88862E8C6962} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
132143
{A2DADE47-5803-49C1-B7AD-4D7FA6515BB4} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
@@ -140,6 +151,9 @@ Global
140151
{5C35651B-97D0-4115-81FC-ED8D7ACD71A7} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
141152
{65AED6F0-D27E-4D6E-BA42-AD6EE1338082} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
142153
{F0899514-88DC-4CBF-A392-825BDC094689} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
154+
{AC89B7CF-0FA5-49EE-97A8-AB39A5F211A8} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
155+
{A50319A4-2476-4FD2-B066-303A3F7CCF73} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
156+
{5C2331B8-EF38-48F3-A060-175530F44F8B} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
143157
EndGlobalSection
144158
GlobalSection(ExtensibilityGlobals) = postSolution
145159
SolutionGuid = {70FEC644-BB3C-4441-AF91-DC694803C8F2}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<ProjectReference Include="..\..\src\Aliencube.AzureFunctions.Extensions.Configuration.AppSettings\Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.csproj" />
9+
</ItemGroup>
10+
11+
</Project>

test/Aliencube.AzureFunctions.Tests.Fakes/FakeProductSettings.cs renamed to test/Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests.Fakes/FakeProductSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Aliencube.AzureFunctions.Tests.Fakes
1+
namespace Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests.Fakes
22
{
33
/// <summary>
44
/// This represents the fake product settings entity.

test/Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests/Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818
<PackageReference Include="MSTest.TestFramework" Version="2.1.2" />
1919
</ItemGroup>
2020

21+
<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
22+
<ProjectReference Include="..\..\src\Aliencube.AzureFunctions.Extensions.Configuration.Json\Aliencube.AzureFunctions.Extensions.Configuration.Json.csproj" />
23+
</ItemGroup>
24+
2125
<ItemGroup>
22-
<!--<ProjectReference Include="..\..\src\Aliencube.AzureFunctions.Extensions.Configuration.AppSettings\Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.csproj" />-->
23-
<ProjectReference Include="..\Aliencube.AzureFunctions.Tests.Fakes\Aliencube.AzureFunctions.Tests.Fakes.csproj" />
26+
<ProjectReference Include="..\Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests.Fakes\Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests.Fakes.csproj" />
2427
</ItemGroup>
2528

2629
<ItemGroup>

test/Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests/Extensions/ConfigurationBinderExtensionsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.IO;
22

3-
using Aliencube.AzureFunctions.Tests.Fakes;
3+
using Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests.Fakes;
44

55
using FluentAssertions;
66

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<ProjectReference Include="..\..\src\Aliencube.AzureFunctions.Extensions.DependencyInjection\Aliencube.AzureFunctions.Extensions.DependencyInjection.csproj" />
9+
</ItemGroup>
10+
11+
</Project>

test/Aliencube.AzureFunctions.Tests.Fakes/FakeClass.cs renamed to test/Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests.Fakes/FakeClass.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
namespace Aliencube.AzureFunctions.Tests.Fakes
2-
{
3-
/// <summary>
4-
/// This represents the fake class entity.
5-
/// </summary>
6-
public class FakeClass : IFakeInterface
7-
{
8-
/// <inheritdoc />
9-
[FakeMethod]
10-
public bool DoSomething(bool input)
11-
{
12-
return input;
13-
}
14-
15-
/// <inheritdoc />
16-
public bool DoOtherThing(bool input)
17-
{
18-
return input;
19-
}
20-
}
21-
}
1+
namespace Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests.Fakes
2+
{
3+
/// <summary>
4+
/// This represents the fake class entity.
5+
/// </summary>
6+
public class FakeClass : IFakeInterface
7+
{
8+
/// <inheritdoc />
9+
[FakeMethod]
10+
public bool DoSomething(bool input)
11+
{
12+
return input;
13+
}
14+
15+
/// <inheritdoc />
16+
public bool DoOtherThing(bool input)
17+
{
18+
return input;
19+
}
20+
}
21+
}

test/Aliencube.AzureFunctions.Tests.Fakes/FakeFunctionWithILogger.cs renamed to test/Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests.Fakes/FakeFunctionWithILogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
using Microsoft.Extensions.Logging;
66

7-
namespace Aliencube.AzureFunctions.Tests.Fakes
7+
namespace Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests.Fakes
88
{
99
/// <summary>
1010
/// This represents the function entity.

test/Aliencube.AzureFunctions.Tests.Fakes/FakeFunctionWithTraceWriter.cs renamed to test/Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests.Fakes/FakeFunctionWithTraceWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
using Microsoft.Azure.WebJobs.Host;
66

7-
namespace Aliencube.AzureFunctions.Tests.Fakes
7+
namespace Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests.Fakes
88
{
99
/// <summary>
1010
/// This represents the function entity.

0 commit comments

Comments
 (0)