Skip to content

Commit 70f8aad

Browse files
authored
Fix unit test project (#4490)
* Fix unit tests * Add unit test proj to sln & tidy up props
1 parent 7db2295 commit 70f8aad

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

Azure.Functions.Cli.sln

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Functions.Cli.E2E.Tes
2727
EndProject
2828
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GoZipTool", "src\GoZipTool\GoZipTool.csproj", "{7849148F-F156-4FAD-8087-3ADF22785A4B}"
2929
EndProject
30+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Cli", "Cli", "{4FC405F4-CF0B-4CD6-8555-A93AF42A27E8}"
31+
EndProject
32+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Functions.Cli.Unit.Tests", "test\Cli\Func.Unit.Tests\Azure.Functions.Cli.Unit.Tests.csproj", "{BBCC9C23-0594-4F5F-8604-B4E032EFC8DE}"
33+
EndProject
3034
Global
3135
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3236
Debug|Any CPU = Debug|Any CPU
@@ -69,6 +73,10 @@ Global
6973
{7849148F-F156-4FAD-8087-3ADF22785A4B}.Debug|Any CPU.Build.0 = Debug|Any CPU
7074
{7849148F-F156-4FAD-8087-3ADF22785A4B}.Release|Any CPU.ActiveCfg = Release|Any CPU
7175
{7849148F-F156-4FAD-8087-3ADF22785A4B}.Release|Any CPU.Build.0 = Release|Any CPU
76+
{BBCC9C23-0594-4F5F-8604-B4E032EFC8DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
77+
{BBCC9C23-0594-4F5F-8604-B4E032EFC8DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
78+
{BBCC9C23-0594-4F5F-8604-B4E032EFC8DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
79+
{BBCC9C23-0594-4F5F-8604-B4E032EFC8DE}.Release|Any CPU.Build.0 = Release|Any CPU
7280
EndGlobalSection
7381
GlobalSection(SolutionProperties) = preSolution
7482
HideSolutionNode = FALSE
@@ -84,6 +92,8 @@ Global
8492
{3A8E1907-E3A2-1CE0-BA8B-805B655FAF09} = {6EE1D011-2334-44F2-9D41-608B969DAE6D}
8593
{D61226F6-3472-32C7-16F5-F07705F779CE} = {6EE1D011-2334-44F2-9D41-608B969DAE6D}
8694
{7849148F-F156-4FAD-8087-3ADF22785A4B} = {5F51C958-39C0-4E0C-9165-71D0BCE647BC}
95+
{4FC405F4-CF0B-4CD6-8555-A93AF42A27E8} = {6EE1D011-2334-44F2-9D41-608B969DAE6D}
96+
{BBCC9C23-0594-4F5F-8604-B4E032EFC8DE} = {4FC405F4-CF0B-4CD6-8555-A93AF42A27E8}
8797
EndGlobalSection
8898
GlobalSection(ExtensibilityGlobals) = postSolution
8999
SolutionGuid = {FA1E01D6-A57B-4061-A333-EDC511D283C0}

eng/build/Packages.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
<PackageVersion Include="WindowsAzure.Storage" Version="9.3.1" />
88
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
99
</ItemGroup>
10+
1011
<!-- abstractions-->
1112
<ItemGroup>
1213
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="9.0.2" />
1314
<PackageVersion Include="System.CommandLine" Version="2.0.0-beta5.25306.101" />
1415
</ItemGroup>
16+
1517
<!-- func -->
1618
<ItemGroup>
1719
<PackageVersion Include="Autofac" Version="4.6.2" />
@@ -30,6 +32,7 @@
3032
<!-- Transitive dependency -->
3133
<PackageVersion Include="System.Text.Json" Version="8.0.5" />
3234
</ItemGroup>
35+
3336
<!-- workers -->
3437
<ItemGroup>
3538
<PackageVersion Include="Microsoft.Azure.Functions.JavaWorker" Version="2.19.1" />
@@ -39,10 +42,12 @@
3942
<PackageVersion Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.4" Version="4.0.4206" />
4043
<PackageVersion Include="Microsoft.Azure.Functions.PythonWorker" Version="4.37.0" />
4144
</ItemGroup>
45+
4246
<!-- host -->
4347
<ItemGroup>
4448
<PackageVersion Include="Microsoft.NETCore.DotNetAppHost" Version="8.0.8" />
4549
</ItemGroup>
50+
4651
<!-- test projects -->
4752
<ItemGroup>
4853
<PackageVersion Include="Azure.Data.Tables" Version="12.9.0" />

test/Cli/Func.Unit.Tests/Azure.Functions.Cli.Unit.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<ProjectReference Include="$(RepoSrcRoot)Cli\func\Azure.Functions.Cli.csproj" />
17+
<ProjectReference Include="$(SrcRoot)Cli\func\Azure.Functions.Cli.csproj" />
1818
</ItemGroup>
1919

2020
</Project>

test/Cli/Func.Unit.Tests/HelperTests/VersionHelperTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

44
using System.Net;
5-
using System.Net.Http;
6-
using System.Threading;
7-
using System.Threading.Tasks;
85
using Azure.Functions.Cli.Helpers;
96
using FluentAssertions;
107
using Moq;

0 commit comments

Comments
 (0)