Commit Graph

49 Commits

Author SHA1 Message Date
Javier Calvarro Nelson 4d2e642b94 Add launchSettings.json by default to our templates
* Adds launchSettings.json to all of our templates.
* Provides an alternative flag to exclude it.
* Adds HTTPS support in launchSettings.json.
* Re-adds HTTPS redirect and HSTS middleware for C# templates.
* Improves some infrastructure aspects:
    * Prefix all our test projects with AspNet.Template to allow easy
      killing of orphaned processes.
    * Setup an HTTPS certificate automatically for use with tests in the
      same way our tooling does it on customers machines.
    * Switch from OS selected ports to randomly selected ports. This is
      required as we need to know the port to use for HTTPS.
    * Allow disabling browser automation through an environment variable.
    * Setup Firefox to allow untrusted certificates when using Selenium.
    * Allow running Selenium tests on firefox by setting an environment
      variable.
2017-12-08 13:08:36 -08:00
Steve Sanderson 1f92811ce0 Make AppVeyor builds more consistent by allowing retry for "npm install" 2017-11-24 11:02:05 +00:00
Steve Sanderson 76cb441a8e On test completion, kill the ASP.NET process tree (otherwise orphan processes are left behind) 2017-11-20 23:03:44 +00:00
Steve Sanderson 352d05030b Remove Yarn usage as results were not consistent with npm-shrinkwrap.json 2017-11-20 22:30:56 +00:00
Steve Sanderson 21b15803ae In tests, restore NPM dependencies using yarn if installed 2017-11-20 14:39:25 +00:00
Steve Sanderson 62a8eafe51 Distribute SPA templates over multiple test classes so they can run in parallel 2017-11-20 11:29:09 +00:00
Steve Sanderson 7961894771 Re-enable test parallelization. Fixes #63. 2017-11-20 10:58:56 +00:00
Steve Sanderson fad4fb22fa Remove test workaround that is no longer needed now the underlying issue is resolved 2017-11-17 15:10:57 +00:00
Steve Sanderson a76a891865 Workarounds to make SPA template tests work 2017-11-17 11:02:41 +00:00
Steve Sanderson 849a0843c9 Fixes for constructing IWebDriver 2017-11-17 11:02:25 +00:00
Steve Sanderson f028839b5d Workaround for publishing issue 2017-11-17 11:02:03 +00:00
Steve Sanderson 2dda2dd99d Stop tests from hanging if the ASP.NET process fails to exit 2017-11-17 11:01:32 +00:00
Nate McMaster 0ebece7f44 Update tests to remove any template that might match 'ASP.NET Core Empty' 2017-11-09 17:14:01 -08:00
Nate McMaster aee0d26d67 Merge build infrastructure changes from rel/2.0.3
Changes:
- Replaces PackageLineup with the dependencies.props approach to manage package versions.
- Generate the csproj/fsproj files that go into template packages
- Remove the DependencyUpdater and PullRequestSubmitter tasks
- Remove bower.json and bowerrc from Microsoft.DotNet.Web.ProjectTemplates
- Set MyGet feeds via MSBuild instead of NuGet.config
- Upgrades to the functional tests
- Update Selenium
- Make it possible to run tests on macOS/linux
- Disable test parallelization
2017-11-06 16:06:24 -08:00
Nate McMaster 09161305bb Reorganize repo branch and project folder structure
When the code lived in dotnet/templating, the 1.x, 2.0, and 2.1 templates all needed to sit side-by-side.
Now that this code builds from aspnet/templating, we're reorganizing the folder and branch structure to
match the aspnetcore runtime repos.

Branches:

rel/1.1.5 = Microsoft.DotNet.Web.ProjectTemplates.1.x
rel/2.0.3 = Microsoft.DotNet.Web.ProjectTemplates.2.0
dev = Microsoft.DotNet.Web.ProjectTemplates.2.1

Changes:
Remove the 2.0 and 1.x templates projects from this branch
2017-11-06 15:54:02 -08:00
Nate McMaster 1ffcf2c009 Reorganize repo branch and project folder structure
When the code lived in dotnet/templating, the 1.x, 2.0, and 2.1 templates all needed to sit side-by-side.
Now that this code builds from aspnet/templating, we're reorganizing the folder and branch structure to
match the aspnetcore runtime repos.

Branches:

rel/1.1.5 = Microsoft.DotNet.Web.ProjectTemplates.1.x
rel/2.0.3 = Microsoft.DotNet.Web.ProjectTemplates.2.0
dev = Microsoft.DotNet.Web.ProjectTemplates.2.1
2017-11-06 10:19:59 -08:00
Steve Sanderson 1a8ebaf77a Update tests to use newer name for 'webapi' template 2017-10-31 17:17:35 +00:00
Steve Sanderson 38ce406c6e Make tests not fail just because a same-named env var was already present 2017-10-31 15:37:35 +00:00
Steve Sanderson a067713a96 Fix test logic for verifying template uninstallation. Now respects global.json for SDK selection. 2017-10-31 15:32:56 +00:00
Javier Calvarro Nelson a80061f42b Move Identity to an Area for 2.1 2017-10-16 10:54:17 -07:00
Nate McMaster a4ba5a1cb1 Disable tests in parallel 2017-10-12 17:24:37 -07:00
Nate McMaster 5541615008 Automate dependency version selection
- Generate the template config file to include package versions as listed in dependencies.props
 - Update template cs/fsproj files to use variables per package
 - Fixup tests to run better on Linux/macOS
2017-10-12 16:44:55 -07:00
Nate McMaster 4d9bacd3f1 Update build scripts and targets to use 2.0.x build tools 2017-10-12 14:09:16 -07:00
Nate McMaster c770f287a5 Remove the 2.1. templates from the rel/2.0.x branch 2017-10-12 14:03:51 -07:00
Steve Sanderson c39c1aaa38 Move 2.1 templates to netcoreapp2.0 until we use an SDK that supports netcoreapp2.1 2017-09-11 18:53:59 +01:00
Steve Sanderson 8c0dd1d2cc Fix for CI agents having extra template package already installed 2017-09-11 18:41:58 +01:00
Steve Sanderson b38f0dbc7a Change tests to use 2.0 templates until SDK is updated 2017-09-11 18:32:54 +01:00
Steve Sanderson 56fdcad4d5 Also uninstall the 2.0 template package when reinstalling for tests 2017-09-11 18:17:13 +01:00
Steve Sanderson 148e4af837 Make template package uninstallation detection report errors properly 2017-09-11 18:13:15 +01:00
Steve Sanderson cb500fe3b8 Account for non-installed templates when preparing test run 2017-09-11 17:41:24 +01:00
Steve Sanderson 1a50c968c4 Update tests to cover 2.1 templates 2017-09-11 16:25:51 +01:00
Steve Sanderson 1e5a3cf59c Trivial string tweak 2017-09-08 23:19:57 +01:00
Steve Sanderson 5178efb17b Fix thread safety issue that was causing intermittent build failures 2017-09-08 19:23:48 +01:00
Steve Sanderson 967c1a50b8 Use Xunit's ITestOutputHelper throughout. Other minor tidy-ups. 2017-09-08 15:24:18 +01:00
Steve Sanderson 2fa1fe8ce2 Fix build output so that versioned packages go into the correct directory when run through KoreBuild 2017-09-08 15:24:15 +01:00
Steve Sanderson 6cf4cbd736 Minor clarification to SPA test code 2017-09-08 15:24:14 +01:00
Steve Sanderson 9174ca79fa Test both dev and published apps 2017-09-06 12:30:27 +01:00
Steve Sanderson 7e8d48cd80 On AppVeyor, must use Firefox (not Edge) for Selenium tests 2017-09-06 11:46:46 +01:00
Steve Sanderson 4a4dcbab3d Specify Node version for AppVeyor builds. Indicate whether browser automation tests are running. 2017-09-06 11:12:16 +01:00
Steve Sanderson 9f88d16cc4 Only run browser automation tests if host OS supports it 2017-09-05 17:33:49 +01:00
Steve Sanderson 87a293ea69 Work around build warning issue 2017-09-05 16:28:24 +01:00
Steve Sanderson 12a8e29288 Add basic browser automation tests for SPA templates (Windows only) 2017-09-05 16:19:04 +01:00
Steve Sanderson 95f2b8d375 Add basic tests for SPA templates (no browser automation yet) 2017-09-05 12:09:43 +01:00
Steve Sanderson a7593fdd19 Move tests to conventional location so they run automatically on build 2017-08-30 23:30:37 +01:00
Steve Sanderson 18dee25eb9 In tests, use dynamic port binding to avoid need for any coordination across simultaneous tests 2017-08-30 22:02:11 +01:00
Steve Sanderson 1255418146 Modernize build system (use Directory.Build.* and KoreBuild lineups) 2017-08-30 14:46:37 +01:00
Steve Sanderson 0dfb43b15a Install latest build of templates before running tests 2017-08-29 17:48:51 +01:00
Steve Sanderson 1f9dd4db5d Replace JSON test DSL with regular C# Xunit tests for consistency with other ASP.NET repos 2017-08-29 17:48:50 +01:00
Steve Sanderson 58211f89c7 Begin adding regular Xunit test project like other ASP.NET repos 2017-08-29 17:48:50 +01:00