From ce04fde7bd7783e374968b3eb3e3abf14c1f5ee9 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Thu, 4 Jan 2018 15:37:32 +0000 Subject: [PATCH] Begin adding BasicTestApp for more E2E tests --- Blazor.sln | 10 +++++++ .../testapps/BasicTestApp/BasicTestApp.csproj | 17 ++++++++++++ test/testapps/BasicTestApp/Program.cs | 15 +++++++++++ .../Properties/launchSettings.json | 27 +++++++++++++++++++ test/testapps/BasicTestApp/wwwroot/index.html | 10 +++++++ 5 files changed, 79 insertions(+) create mode 100644 test/testapps/BasicTestApp/BasicTestApp.csproj create mode 100644 test/testapps/BasicTestApp/Program.cs create mode 100644 test/testapps/BasicTestApp/Properties/launchSettings.json create mode 100644 test/testapps/BasicTestApp/wwwroot/index.html diff --git a/Blazor.sln b/Blazor.sln index bdc9df769c..3879ae4e02 100644 --- a/Blazor.sln +++ b/Blazor.sln @@ -56,6 +56,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Blazor.Browser", EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Blazor.Test", "test\Microsoft.Blazor.Test\Microsoft.Blazor.Test.csproj", "{8FD8636E-AFA5-434D-8857-06D02686741A}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "testapps", "testapps", "{4AE0D35B-D97A-44D0-8392-C9240377DCCE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicTestApp", "test\testapps\BasicTestApp\BasicTestApp.csproj", "{2838CB6F-D2C7-4C0A-A994-C72E56F16984}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -138,6 +142,10 @@ Global {8FD8636E-AFA5-434D-8857-06D02686741A}.Debug|Any CPU.Build.0 = Debug|Any CPU {8FD8636E-AFA5-434D-8857-06D02686741A}.Release|Any CPU.ActiveCfg = Release|Any CPU {8FD8636E-AFA5-434D-8857-06D02686741A}.Release|Any CPU.Build.0 = Release|Any CPU + {2838CB6F-D2C7-4C0A-A994-C72E56F16984}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2838CB6F-D2C7-4C0A-A994-C72E56F16984}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2838CB6F-D2C7-4C0A-A994-C72E56F16984}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2838CB6F-D2C7-4C0A-A994-C72E56F16984}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -165,6 +173,8 @@ Global {8A19B1CE-9B62-4440-93B3-152DDBB39D0A} = {B867E038-B3CE-43E3-9292-61568C46CDEB} {4874AFF4-335D-4037-8858-BBBB987C124B} = {B867E038-B3CE-43E3-9292-61568C46CDEB} {8FD8636E-AFA5-434D-8857-06D02686741A} = {ADA3AE29-F6DE-49F6-8C7C-B321508CAE8E} + {4AE0D35B-D97A-44D0-8392-C9240377DCCE} = {ADA3AE29-F6DE-49F6-8C7C-B321508CAE8E} + {2838CB6F-D2C7-4C0A-A994-C72E56F16984} = {4AE0D35B-D97A-44D0-8392-C9240377DCCE} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {504DA352-6788-4DC0-8705-82167E72A4D3} diff --git a/test/testapps/BasicTestApp/BasicTestApp.csproj b/test/testapps/BasicTestApp/BasicTestApp.csproj new file mode 100644 index 0000000000..c184de810c --- /dev/null +++ b/test/testapps/BasicTestApp/BasicTestApp.csproj @@ -0,0 +1,17 @@ + + + + netcoreapp2.0 + + + run --project ..\..\..\src\Microsoft.Blazor.DevHost serve + + + + + + + + + + diff --git a/test/testapps/BasicTestApp/Program.cs b/test/testapps/BasicTestApp/Program.cs new file mode 100644 index 0000000000..37699ba7e1 --- /dev/null +++ b/test/testapps/BasicTestApp/Program.cs @@ -0,0 +1,15 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +using System; + +namespace BasicTestApp +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("BasicTestApp entrypoint invoked"); + } + } +} diff --git a/test/testapps/BasicTestApp/Properties/launchSettings.json b/test/testapps/BasicTestApp/Properties/launchSettings.json new file mode 100644 index 0000000000..ba24c7d2e9 --- /dev/null +++ b/test/testapps/BasicTestApp/Properties/launchSettings.json @@ -0,0 +1,27 @@ +{ + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:63796/", + "sslPort": 0 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "BasicTestApp": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "applicationUrl": "http://localhost:63797/" + } + } +} \ No newline at end of file diff --git a/test/testapps/BasicTestApp/wwwroot/index.html b/test/testapps/BasicTestApp/wwwroot/index.html new file mode 100644 index 0000000000..2453e2d8d8 --- /dev/null +++ b/test/testapps/BasicTestApp/wwwroot/index.html @@ -0,0 +1,10 @@ + + + + + Basic test app + + + Loading... + +