Re-enable skipped runtime compilation tests

This commit is contained in:
Pranav K 2019-02-13 11:47:39 -08:00
parent 9de42d516e
commit 9053bc6e29
3 changed files with 6 additions and 5 deletions

View File

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

View File

@ -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" />

View File

@ -15,6 +15,7 @@ namespace ErrorPageMiddlewareWebSite
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc()
.AddRazorRuntimeCompilation()
.SetCompatibilityVersion(CompatibilityVersion.Latest);
}