diff --git a/.github/workflows/deep-source.yml b/.github/workflows/deep-source.yml index 7e41d5055..421c9c1ca 100644 --- a/.github/workflows/deep-source.yml +++ b/.github/workflows/deep-source.yml @@ -28,6 +28,6 @@ jobs: env: DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} run: | - dotnet build -c Debug --verbosity minimal - dotnet test -c Debug --verbosity minimal --no-build --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat="cobertura" + dotnet build VTEX.sln -c Debug --verbosity minimal + dotnet test VTEX.sln -c Debug --verbosity minimal --no-build --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat="cobertura" ./bin/deepsource report --analyzer test-coverage --key csharp --value-file ./Tests/VTEX.Tests/coverage.cobertura.xml diff --git a/Tests/VTEX.Tests/Integration/IntegrationTests.cs b/Tests/VTEX.Tests/Integration/IntegrationTests.cs new file mode 100644 index 000000000..f483e59d3 --- /dev/null +++ b/Tests/VTEX.Tests/Integration/IntegrationTests.cs @@ -0,0 +1,15 @@ +namespace VTEX.Tests.Integration +{ + using Xunit; + using WireMock.Server; + using WireMock.RequestBuilders; + using WireMock.ResponseBuilders; + using Snapshooter.Xunit; + using NSubstitute; + using Bogus; + + public class IntegrationTests + { + // Integration tests will be implemented here + } +} diff --git a/Tests/VTEX.Tests/Integration/IntegrationTests.csproj b/Tests/VTEX.Tests/Integration/IntegrationTests.csproj new file mode 100644 index 000000000..a7310b219 --- /dev/null +++ b/Tests/VTEX.Tests/Integration/IntegrationTests.csproj @@ -0,0 +1,20 @@ + + + net6.0 + false + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + diff --git a/VTEX.sln b/VTEX.sln index 3157a06f0..05b9f9f0a 100644 --- a/VTEX.sln +++ b/VTEX.sln @@ -1,66 +1,72 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29920.165 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5BF19C4C-3D84-4618-8A7B-044C0B15187F}" - ProjectSection(SolutionItems) = preProject - appveyor.yml = appveyor.yml - README.md = README.md - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Src", "Src", "{6ECBC782-CB7F-46F8-8D66-66C9E22B0CCC}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{C4DD4B0B-84DE-474B-897D-3960034AB956}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VTEX", "Src\VTEX\VTEX.csproj", "{D1E5B509-0934-4E15-B78D-D3A88AC8CB16}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VTEX.API", "Src\VTEX.API\VTEX.API.csproj", "{35950C06-05C0-4448-BBE3-3A71C34B8FD5}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VTEX.Core", "Src\VTEX.Core\VTEX.Core.csproj", "{D6864E5A-45B5-4CD1-8EC5-15E10A3B8F1B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VTEX.Health", "Src\VTEX.Health\VTEX.Health.csproj", "{931C39A1-583E-4264-AC7C-508C7B1FC15E}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VTEX.Tests", "Tests\VTEX.Tests\VTEX.Tests.csproj", "{2FD2F4CE-DCAB-4F78-8A20-A22CD7F74CFB}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D1E5B509-0934-4E15-B78D-D3A88AC8CB16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D1E5B509-0934-4E15-B78D-D3A88AC8CB16}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D1E5B509-0934-4E15-B78D-D3A88AC8CB16}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D1E5B509-0934-4E15-B78D-D3A88AC8CB16}.Release|Any CPU.Build.0 = Release|Any CPU - {2FD2F4CE-DCAB-4F78-8A20-A22CD7F74CFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2FD2F4CE-DCAB-4F78-8A20-A22CD7F74CFB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2FD2F4CE-DCAB-4F78-8A20-A22CD7F74CFB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2FD2F4CE-DCAB-4F78-8A20-A22CD7F74CFB}.Release|Any CPU.Build.0 = Release|Any CPU - {931C39A1-583E-4264-AC7C-508C7B1FC15E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {931C39A1-583E-4264-AC7C-508C7B1FC15E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {931C39A1-583E-4264-AC7C-508C7B1FC15E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {931C39A1-583E-4264-AC7C-508C7B1FC15E}.Release|Any CPU.Build.0 = Release|Any CPU - {35950C06-05C0-4448-BBE3-3A71C34B8FD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {35950C06-05C0-4448-BBE3-3A71C34B8FD5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {35950C06-05C0-4448-BBE3-3A71C34B8FD5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {35950C06-05C0-4448-BBE3-3A71C34B8FD5}.Release|Any CPU.Build.0 = Release|Any CPU - {D6864E5A-45B5-4CD1-8EC5-15E10A3B8F1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D6864E5A-45B5-4CD1-8EC5-15E10A3B8F1B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D6864E5A-45B5-4CD1-8EC5-15E10A3B8F1B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D6864E5A-45B5-4CD1-8EC5-15E10A3B8F1B}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {D1E5B509-0934-4E15-B78D-D3A88AC8CB16} = {6ECBC782-CB7F-46F8-8D66-66C9E22B0CCC} - {2FD2F4CE-DCAB-4F78-8A20-A22CD7F74CFB} = {C4DD4B0B-84DE-474B-897D-3960034AB956} - {931C39A1-583E-4264-AC7C-508C7B1FC15E} = {6ECBC782-CB7F-46F8-8D66-66C9E22B0CCC} - {35950C06-05C0-4448-BBE3-3A71C34B8FD5} = {6ECBC782-CB7F-46F8-8D66-66C9E22B0CCC} - {D6864E5A-45B5-4CD1-8EC5-15E10A3B8F1B} = {6ECBC782-CB7F-46F8-8D66-66C9E22B0CCC} - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {B1BA065D-A160-479A-8B02-99D653349201} - EndGlobalSection -EndGlobal + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29920.165 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5BF19C4C-3D84-4618-8A7B-044C0B15187F}" + ProjectSection(SolutionItems) = preProject + appveyor.yml = appveyor.yml + README.md = README.md + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Src", "Src", "{6ECBC782-CB7F-46F8-8D66-66C9E22B0CCC}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{C4DD4B0B-84DE-474B-897D-3960034AB956}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VTEX", "Src\VTEX\VTEX.csproj", "{D1E5B509-0934-4E15-B78D-D3A88AC8CB16}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VTEX.API", "Src\VTEX.API\VTEX.API.csproj", "{35950C06-05C0-4448-BBE3-3A71C34B8FD5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VTEX.Core", "Src\VTEX.Core\VTEX.Core.csproj", "{D6864E5A-45B5-4CD1-8EC5-15E10A3B8F1B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VTEX.Health", "Src\VTEX.Health\VTEX.Health.csproj", "{931C39A1-583E-4264-AC7C-508C7B1FC15E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VTEX.Tests", "Tests\VTEX.Tests\VTEX.Tests.csproj", "{2FD2F4CE-DCAB-4F78-8A20-A22CD7F74CFB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IntegrationTests", "Tests\VTEX.Tests\Integration\IntegrationTests.csproj", "{NEW_GUID}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D1E5B509-0934-4E15-B78D-D3A88AC8CB16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D1E5B509-0934-4E15-B78D-D3A88AC8CB16}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D1E5B509-0934-4E15-B78D-D3A88AC8CB16}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D1E5B509-0934-4E15-B78D-D3A88AC8CB16}.Release|Any CPU.Build.0 = Release|Any CPU + {2FD2F4CE-DCAB-4F78-8A20-A22CD7F74CFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2FD2F4CE-DCAB-4F78-8A20-A22CD7F74CFB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2FD2F4CE-DCAB-4F78-8A20-A22CD7F74CFB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2FD2F4CE-DCAB-4F78-8A20-A22CD7F74CFB}.Release|Any CPU.Build.0 = Release|Any CPU + {NEW_GUID}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {NEW_GUID}.Debug|Any CPU.Build.0 = Debug|Any CPU + {931C39A1-583E-4264-AC7C-508C7B1FC15E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {931C39A1-583E-4264-AC7C-508C7B1FC15E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {931C39A1-583E-4264-AC7C-508C7B1FC15E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {931C39A1-583E-4264-AC7C-508C7B1FC15E}.Release|Any CPU.Build.0 = Release|Any CPU + {NEW_GUID}.Release|Any CPU.ActiveCfg = Release|Any CPU + {NEW_GUID}.Release|Any CPU.Build.0 = Release|Any CPU + {35950C06-05C0-4448-BBE3-3A71C34B8FD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {35950C06-05C0-4448-BBE3-3A71C34B8FD5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {35950C06-05C0-4448-BBE3-3A71C34B8FD5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {35950C06-05C0-4448-BBE3-3A71C34B8FD5}.Release|Any CPU.Build.0 = Release|Any CPU + {D6864E5A-45B5-4CD1-8EC5-15E10A3B8F1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D6864E5A-45B5-4CD1-8EC5-15E10A3B8F1B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D6864E5A-45B5-4CD1-8EC5-15E10A3B8F1B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D6864E5A-45B5-4CD1-8EC5-15E10A3B8F1B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {D1E5B509-0934-4E15-B78D-D3A88AC8CB16} = {6ECBC782-CB7F-46F8-8D66-66C9E22B0CCC} + {2FD2F4CE-DCAB-4F78-8A20-A22CD7F74CFB} = {C4DD4B0B-84DE-474B-897D-3960034AB956} + {NEW_GUID} = {C4DD4B0B-84DE-474B-897D-3960034AB956} + {931C39A1-583E-4264-AC7C-508C7B1FC15E} = {6ECBC782-CB7F-46F8-8D66-66C9E22B0CCC} + {35950C06-05C0-4448-BBE3-3A71C34B8FD5} = {6ECBC782-CB7F-46F8-8D66-66C9E22B0CCC} + {D6864E5A-45B5-4CD1-8EC5-15E10A3B8F1B} = {6ECBC782-CB7F-46F8-8D66-66C9E22B0CCC} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B1BA065D-A160-479A-8B02-99D653349201} + EndGlobalSection +EndGlobal