Update test framework versions
This commit is contained in:
parent
ae02eb436a
commit
2dcfadf5c2
|
|
@ -14,7 +14,7 @@
|
|||
<CoreFxVersion>4.3.0</CoreFxVersion>
|
||||
<NETStandardImplicitPackageVersion>$(BundledNETStandardPackageVersion)</NETStandardImplicitPackageVersion>
|
||||
<NuGetPackagesVersion>4.0.0</NuGetPackagesVersion>
|
||||
<TestSdkVersion>15.0.0</TestSdkVersion>
|
||||
<XunitVersion>2.2.0</XunitVersion>
|
||||
<TestSdkVersion>15.3.0-*</TestSdkVersion>
|
||||
<XunitVersion>2.3.0-beta2-*</XunitVersion>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ namespace E2ETests
|
|||
Assert.Equal<string>("code id_token", queryItems["response_type"]);
|
||||
Assert.Equal<string>("openid profile", queryItems["scope"]);
|
||||
Assert.Equal<string>("ValidStateData", queryItems["state"]);
|
||||
Assert.NotNull(queryItems["nonce"]);
|
||||
Assert.NotNull(_httpClientHandler.CookieContainer.GetCookies(new Uri(_deploymentResult.ApplicationBaseUri)).GetCookieWithName(".AspNetCore.OpenIdConnect.Nonce.protectedString"));
|
||||
|
||||
// This is just enable the auto-redirect.
|
||||
|
|
@ -120,4 +119,4 @@ namespace E2ETests
|
|||
Assert.Contains("Log in", responseContent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
<UserSecretsId>MusicStore.E2ETests</UserSecretsId>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<ServerGarbageCollection>true</ServerGarbageCollection>
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);xUnit1004</WarningsNotAsErrors>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
@ -45,8 +46,4 @@
|
|||
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="$(AspNetCoreVersion)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -55,10 +55,9 @@ namespace E2ETests
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: temporarily disabling x86 tests as dotnet xunit test runner currently does not support 32-bit
|
||||
// public
|
||||
class PublishAndRunTests_OnX86
|
||||
public class PublishAndRunTests_OnX86
|
||||
{
|
||||
private const string SkipReason = "temporarily disabling x86 tests as dotnet xunit test runner currently does not support 32-bit";
|
||||
private readonly ITestOutputHelper _output;
|
||||
|
||||
public PublishAndRunTests_OnX86(ITestOutputHelper output)
|
||||
|
|
@ -66,7 +65,8 @@ namespace E2ETests
|
|||
_output = output;
|
||||
}
|
||||
|
||||
[ConditionalTheory, Trait("E2Etests", "PublishAndRun")]
|
||||
[ConditionalTheory(Skip = SkipReason)]
|
||||
[Trait("E2Etests", "PublishAndRun")]
|
||||
[OSSkipCondition(OperatingSystems.Linux)]
|
||||
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||
[InlineData(ServerType.WebListener, RuntimeArchitecture.x86, ApplicationType.Portable, false)]
|
||||
|
|
@ -84,7 +84,8 @@ namespace E2ETests
|
|||
serverType, architecture, applicationType, noSource);
|
||||
}
|
||||
|
||||
[ConditionalTheory, Trait("E2Etests", "PublishAndRun")]
|
||||
[ConditionalTheory(Skip = SkipReason)]
|
||||
[Trait("E2Etests", "PublishAndRun")]
|
||||
[OSSkipCondition(OperatingSystems.Windows)]
|
||||
[InlineData(ServerType.Kestrel, RuntimeArchitecture.x86, ApplicationType.Portable, false)]
|
||||
public async Task NonWindowsOS(
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@ using Xunit.Abstractions;
|
|||
|
||||
namespace E2ETests
|
||||
{
|
||||
// TODO: temporarily disabling these tests as dotnet xunit runner does not support 32-bit yet.
|
||||
internal class SmokeTests_X86
|
||||
public class SmokeTests_X86
|
||||
{
|
||||
private readonly ITestOutputHelper _output;
|
||||
|
||||
|
|
@ -19,7 +18,8 @@ namespace E2ETests
|
|||
_output = output;
|
||||
}
|
||||
|
||||
[ConditionalTheory, Trait("E2Etests", "Smoke")]
|
||||
[ConditionalTheory(Skip = "temporarily disabling these tests as dotnet xunit runner does not support 32-bit yet.")]
|
||||
[Trait("E2Etests", "Smoke")]
|
||||
[OSSkipCondition(OperatingSystems.Linux)]
|
||||
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||
[InlineData(ServerType.WebListener, RuntimeArchitecture.x86, ApplicationType.Portable)]
|
||||
|
|
@ -37,7 +37,8 @@ namespace E2ETests
|
|||
await smokeTestRunner.SmokeTestSuite(serverType, architecture, applicationType);
|
||||
}
|
||||
|
||||
[ConditionalTheory(Skip = "Temporarily disabling test"), Trait("E2Etests", "Smoke")]
|
||||
[ConditionalTheory(Skip = "Temporarily disabling test")]
|
||||
[Trait("E2Etests", "Smoke")]
|
||||
[OSSkipCondition(OperatingSystems.Windows)]
|
||||
[InlineData(ServerType.Kestrel, RuntimeArchitecture.x86, ApplicationType.Portable)]
|
||||
public async Task NonWindowsOS(
|
||||
|
|
@ -91,7 +92,7 @@ namespace E2ETests
|
|||
}
|
||||
}
|
||||
|
||||
class SmokeTests_OnIIS
|
||||
public class SmokeTests_OnIIS
|
||||
{
|
||||
private readonly ITestOutputHelper _output;
|
||||
|
||||
|
|
@ -100,7 +101,8 @@ namespace E2ETests
|
|||
_output = output;
|
||||
}
|
||||
|
||||
[ConditionalTheory, Trait("E2Etests", "Smoke")]
|
||||
[ConditionalTheory]
|
||||
[Trait("E2Etests", "Smoke")]
|
||||
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||
[OSSkipCondition(OperatingSystems.Linux)]
|
||||
[FrameworkSkipCondition(RuntimeFrameworks.CoreCLR)]
|
||||
|
|
|
|||
|
|
@ -18,8 +18,4 @@
|
|||
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitVersion)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
Loading…
Reference in New Issue