vnext/TestWebSite/README.md
This is a generic ASP.NET Core application that provides arbitrary HTTP responses and WebSocket endpoints to validate React Native Windows's functionality.
It is meant to complement (and partially replace) the in-process C++ test servers used for integration which have very limited functionality and are hard to program against.
This application enhances web testing via a number of features such as:
Deploying this website in Continuous Integration/Delivery environments also removes the dependency on remote web endpoints for end to end scenarios.
Set-Location vnext
npm run start
dotnet dev-certs https --trust
dotnet run --project vnext\TestWebSite
The website gets deployed to a web server.
This reduces the process management overhead and increases stability and availability in CI environments.
The website can also be installed on a development environment.
Note: This would require to update the website's publish directory with any new changes, but removes the need to manage the additonal process and terminal window.
Here are the steps for Micrososoft's IIS:
Set-Location vnext\TestWebSite
dotnet publish
5555 to http and 5543 to https.https, any trusted SSL certificate will work. There is no need to install localhost.cicert.
C:\repo\react-native-windows\vnext\target\x64\Debug\Microsoft.ReactNative.Test.Website\Publish)5555 (http, ws) and 5543 (https, wss).localhost.cicert is used (DevOps only).
The certificate is set to expire on January 1st, 2030.CN=localhost.localhost.cicert with the new certificate.$(TestWebsiteCertPassword).