Re-enable skipped runtime compilation tests
This commit is contained in:
parent
9de42d516e
commit
9053bc6e29
|
|
@ -25,7 +25,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
|||
|
||||
public HttpClient Client { get; }
|
||||
|
||||
[Fact(Skip = "https://github.com/aspnet/Mvc/issues/8753")]
|
||||
[Fact]
|
||||
public async Task CompilationFailuresAreListedByErrorPageMiddleware()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -45,7 +45,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
|||
Assert.DoesNotContain(PreserveCompilationContextMessage, content);
|
||||
}
|
||||
|
||||
[Fact(Skip = "https://github.com/aspnet/Mvc/issues/8753")]
|
||||
[Fact]
|
||||
public async Task ParseFailuresAreListedByErrorPageMiddleware()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -67,7 +67,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
|||
Assert.Contains(expected, content);
|
||||
}
|
||||
|
||||
[Fact(Skip = "https://github.com/aspnet/Mvc/issues/8753")]
|
||||
[Fact]
|
||||
public async Task CompilationFailuresFromViewImportsAreListed()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -90,7 +90,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
|||
Assert.Contains(expectedCompilationContent, content);
|
||||
}
|
||||
|
||||
[Fact(Skip = "https://github.com/aspnet/Mvc/issues/8753")]
|
||||
[Fact]
|
||||
public async Task RuntimeErrorAreListedByErrorPageMiddleware()
|
||||
{
|
||||
// Arrange
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.0</TargetFramework>
|
||||
<DebugType Condition="'$(TargetFramework)' == 'net461'">full</DebugType>
|
||||
<!-- We want to validate runtime parser \ compilation exceptions -->
|
||||
<RazorCompileOnBuild>false</RazorCompileOnBuild>
|
||||
<IsTestAssetProject>true</IsTestAssetProject>
|
||||
|
|
@ -10,6 +9,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.AspNetCore.Mvc" />
|
||||
<Reference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" />
|
||||
|
||||
<Reference Include="Microsoft.AspNetCore.Diagnostics" />
|
||||
<Reference Include="Microsoft.AspNetCore.Server.IISIntegration" />
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ namespace ErrorPageMiddlewareWebSite
|
|||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddMvc()
|
||||
.AddRazorRuntimeCompilation()
|
||||
.SetCompatibilityVersion(CompatibilityVersion.Latest);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue