Skip to content

Commit

Permalink
Add test project as dummy
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Jul 10, 2020
1 parent da4e56a commit 5f46479
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 3 deletions.
48 changes: 46 additions & 2 deletions .github/workflows/release-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,57 @@ jobs:
dir
dotnet restore .
- name: Build solution
- name: Build solution for AppSettings
if: steps.release.outputs.module == 'appsettings'
shell: pwsh
run: |
dir
dotnet build ./src/Aliencube.AzureFunctions.Extensions.Configuration.AppSettings -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal
- name: Build solution for Configuration.Json
if: steps.release.outputs.module == 'configjson'
shell: pwsh
run: |
dir
dotnet build ./src/Aliencube.AzureFunctions.Extensions.Configuration.Json -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal
- name: Build solution for DependencyInjection
if: steps.release.outputs.module == 'di'
shell: pwsh
run: |
dir
dotnet build ./src/Aliencube.AzureFunctions.Extensions.DependencyInjection -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal
- name: Build solution for OpenApi
if: steps.release.outputs.module == 'swagger'
shell: pwsh
run: |
dir
dotnet build . -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal
- name: Test solution
- name: Test solution for AppSettings
if: steps.release.outputs.module == 'appsettings'
shell: pwsh
run: |
dir
dotnet test ./test/Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests -c Release
- name: Test solution for Configuration.Json
if: steps.release.outputs.module == 'configjson'
shell: pwsh
run: |
dir
dotnet test ./test/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests -c Release
- name: Test solution for DependencyInjection
if: steps.release.outputs.module == 'di'
shell: pwsh
run: |
dir
dotnet test ./test/Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests -c Release
- name: Test solution for OpenApi
if: steps.release.outputs.module == 'swagger'
shell: pwsh
run: |
dir
Expand Down
9 changes: 8 additions & 1 deletion Aliencube.AzureFunctions.Extensions.sln
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Fu
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Extensions.OpenApi.CLI", "src\Aliencube.AzureFunctions.Extensions.OpenApi.CLI\Aliencube.AzureFunctions.Extensions.OpenApi.CLI.csproj", "{5C35651B-97D0-4115-81FC-ED8D7ACD71A7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "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}"
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}"
EndProject
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}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -113,6 +115,10 @@ Global
{65AED6F0-D27E-4D6E-BA42-AD6EE1338082}.Debug|Any CPU.Build.0 = Debug|Any CPU
{65AED6F0-D27E-4D6E-BA42-AD6EE1338082}.Release|Any CPU.ActiveCfg = Release|Any CPU
{65AED6F0-D27E-4D6E-BA42-AD6EE1338082}.Release|Any CPU.Build.0 = Release|Any CPU
{F0899514-88DC-4CBF-A392-825BDC094689}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F0899514-88DC-4CBF-A392-825BDC094689}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F0899514-88DC-4CBF-A392-825BDC094689}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F0899514-88DC-4CBF-A392-825BDC094689}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -133,6 +139,7 @@ Global
{C9A65D52-A167-4673-823C-D2FEA080FA7A} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{5C35651B-97D0-4115-81FC-ED8D7ACD71A7} = {810145E0-41CF-4E24-BD9C-E7517498BA29}
{65AED6F0-D27E-4D6E-BA42-AD6EE1338082} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
{F0899514-88DC-4CBF-A392-825BDC094689} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {70FEC644-BB3C-4441-AF91-DC694803C8F2}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net461</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="Moq" Version="4.14.5" />
<PackageReference Include="MSTest.TestAdapter" Version="2.1.2" />
<PackageReference Include="MSTest.TestFramework" Version="2.1.2" />
<PackageReference Include="coverlet.collector" Version="1.2.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Aliencube.AzureFunctions.Extensions.Configuration.Json\Aliencube.AzureFunctions.Extensions.Configuration.Json.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests
{
[TestClass]
public class DummyTests
{
[TestMethod]
public void Given_Nothing_Then_It_Should_Return_True()
{
Assert.IsTrue(true);
}
}
}

0 comments on commit 5f46479

Please sign in to comment.