Add tests for the Host
cc @schellap Let's figure out the base set of activations
I will take a look at this, this week.
@brthor, could you please comment on what all exists in the CLI repo and can be ported over?
Primary tests
Activation Tests
- Published Standalone app activation
- Published Portable app activation
- Dotnet run activation of standalone app
- Dotnet run activation of portable app
- Dotnet test of standalone app
- Dotnet test of portable app
- Dotnet extension activation
Portable and Standalone apps should have RID specific managed, native and culture resources
Real World tests
Kestrel Server x (Standalone + Portable + XUnit + dotnet run)
Seconday tests
Servicing tests
SDK Selection
FX selection
--fx-version runtimeconfig.json
Runtime Configuration Tests
@schellap for 1,2,3,4 we could copy over a standalone and portable test asset.
If we restore these against the built Microsoft.NETCore.App package, then this will also encompass dotnet/core-setup#34
Well need to manually copy over an sdk directory from the downloaded cli and patch together a stage2 like directory with the currently built host + sharedfx.
for 5,6 I think we should create new, targetted projects. We don't have any specific tests for these scenarios that I know of.
for 7, we can port the dotnet-hello test from dotnet.Tests in cli, but there is an additional setup step to dotnet pack it before testing activation. In the cli we do this in the build, but if possible we should actually do this in the individual test so it doesn't have a dependency on the build.
Really appreciate. I will sync with you in an hour. We might have to do it before we freeze, so we can divvy up.
dotnet/core-setup#97 covers all numbered cases except point 7 above.
Leaving this open to track additional tests which should be added.
Closing this issue. We have other mechanisms tracking the need for better tests in the host area.