This commit is contained in:
Justin Kotalik 2018-07-30 13:59:49 -07:00
Родитель 925384a1a3 b85adeee6d
Коммит c7ad5d89e0
2 изменённых файлов: 22 добавлений и 2 удалений

Просмотреть файл

@ -16,14 +16,24 @@ namespace E2ETests
{ {
public static TestMatrix TestVariants public static TestMatrix TestVariants
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys) => TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys)
.WithTfms(Tfm.NetCoreApp22, Tfm.NetCoreApp21, Tfm.NetCoreApp20, Tfm.Net461) .WithTfms(Tfm.NetCoreApp22)
.WithAllApplicationTypes() .WithAllApplicationTypes()
.WithAllAncmVersions() .WithAllAncmVersions()
.WithAllHostingModels() .WithAllHostingModels()
.WithAllArchitectures(); .WithAllArchitectures();
// ANCM In-process cannot run on netcoreapp2.1 and below
public static TestMatrix TestVariantsWithoutInproc
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys)
.WithTfms(Tfm.NetCoreApp21, Tfm.NetCoreApp20, Tfm.Net461)
.WithAllApplicationTypes()
.WithAllAncmVersions()
.WithHostingModels(HostingModel.OutOfProcess)
.WithAllArchitectures();
[ConditionalTheory] [ConditionalTheory]
[MemberData(nameof(TestVariants))] [MemberData(nameof(TestVariants))]
[MemberData(nameof(TestVariantsWithoutInproc))]
public async Task PublishAndRun_Test(TestVariant variant) public async Task PublishAndRun_Test(TestVariant variant)
{ {
var testName = $"PublishAndRunTests_{variant}"; var testName = $"PublishAndRunTests_{variant}";

Просмотреть файл

@ -17,13 +17,23 @@ namespace E2ETests
{ {
public static TestMatrix TestVariants public static TestMatrix TestVariants
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys) => TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys)
.WithTfms(Tfm.NetCoreApp22, Tfm.NetCoreApp21, Tfm.NetCoreApp20, Tfm.Net461) .WithTfms(Tfm.NetCoreApp22)
.WithAllApplicationTypes() .WithAllApplicationTypes()
.WithAllAncmVersions() .WithAllAncmVersions()
.WithAllHostingModels(); .WithAllHostingModels();
// ANCM In-process cannot run on netcoreapp2.1 and below
public static TestMatrix TestVariantsWithoutInproc
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys)
.WithTfms(Tfm.NetCoreApp21, Tfm.NetCoreApp20, Tfm.Net461)
.WithAllApplicationTypes()
.WithAllAncmVersions()
.WithHostingModels(HostingModel.OutOfProcess)
.WithAllArchitectures();
[ConditionalTheory] [ConditionalTheory]
[MemberData(nameof(TestVariants))] [MemberData(nameof(TestVariants))]
[MemberData(nameof(TestVariantsWithoutInproc))]
public async Task Smoke_Tests(TestVariant variant) public async Task Smoke_Tests(TestVariant variant)
{ {
var testName = $"SmokeTestSuite_{variant}"; var testName = $"SmokeTestSuite_{variant}";