runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Add tests for the Host

Open brthor opened this issue 10 years ago • 7 comments

cc @schellap Let's figure out the base set of activations

brthor avatar May 27 '16 20:05 brthor

I will take a look at this, this week.

schellap avatar May 31 '16 17:05 schellap

@brthor, could you please comment on what all exists in the CLI repo and can be ported over?

Primary tests

Activation Tests

  1. Published Standalone app activation
  2. Published Portable app activation
  3. Dotnet run activation of standalone app
  4. Dotnet run activation of portable app
  5. Dotnet test of standalone app
  6. Dotnet test of portable app
  7. 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 avatar May 31 '16 18:05 schellap

@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.

brthor avatar Jun 02 '16 20:06 brthor

Really appreciate. I will sync with you in an hour. We might have to do it before we freeze, so we can divvy up.

schellap avatar Jun 02 '16 20:06 schellap

dotnet/core-setup#97 covers all numbered cases except point 7 above.

brthor avatar Jun 09 '16 01:06 brthor

Leaving this open to track additional tests which should be added.

brthor avatar Jun 10 '16 17:06 brthor

Closing this issue. We have other mechanisms tracking the need for better tests in the host area.

jeffschwMSFT avatar Jun 18 '19 22:06 jeffschwMSFT