aspnet / Hosting

[Archived] Code for hosting and starting up an ASP.NET Core application. Project moved to https://github.com/aspnet/Extensions and https://github.com/aspnet/AspNetCore
Apache License 2.0
552 stars 312 forks source link

Allow us to communicate with the TestServer over the network #1549

Closed drauch closed 5 years ago

drauch commented 5 years ago

We would love to run our browser-based Selenium web tests against an instance of TestServer (as described here: https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-2.1). Unfortunately, TestServer does not open an in-process HTTP server, instead it directly communicates with the application. It'd be great if there'd be a second TestServer which actually hosts an HTTP server (e.g., in-process Kestrel).

Tratcher commented 5 years ago

Why not just use kestrel?

drauch commented 5 years ago

Actually, we do at the moment. But it looks like the integration test suite is now the way to go into the future?

Tratcher commented 5 years ago

Kestrel is fine for in process functional testing. TestServer is for more targeted unit testing.

drauch commented 5 years ago

Fair enough, then we keep going with our in process Kestrel strategy.