Skipped Database error page tests temporarily to fix Travis CI

This commit is contained in:
Kiran Challa 2015-09-04 00:46:23 -07:00
parent a8df52fa7c
commit 12d9302a31
2 changed files with 15 additions and 7 deletions

View File

@ -12,6 +12,7 @@ using Microsoft.AspNet.Diagnostics.Entity.FunctionalTests.Helpers;
using Microsoft.AspNet.Diagnostics.Entity.Tests.Helpers;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.TestHost;
using Microsoft.AspNet.Testing.xunit;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Framework.DependencyInjection;
@ -71,7 +72,8 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
}
}
[Fact]
[ConditionalTheory]
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
public async Task Error_page_displayed_no_migrations()
{
TestServer server = SetupTestServer<BloggingContext, NoMigrationsMiddleware>();
@ -100,7 +102,8 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
}
}
[Fact]
[ConditionalTheory]
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
public async Task Error_page_displayed_pending_migrations()
{
TestServer server = SetupTestServer<BloggingContextWithMigrations, PendingMigrationsMiddleware>();
@ -133,7 +136,8 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
}
}
[Fact]
[ConditionalTheory]
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
public async Task Error_page_displayed_pending_model_changes()
{
TestServer server = SetupTestServer<BloggingContextWithPendingModelChanges, PendingModelChangesMiddleware>();
@ -165,7 +169,8 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
}
}
[Fact]
[ConditionalTheory]
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
public async Task Pass_thru_when_context_not_in_services()
{
using (var database = SqlServerTestStore.CreateScratch())
@ -218,7 +223,8 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
}
}
[Fact]
[ConditionalTheory]
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
public async Task Pass_thru_when_exception_in_logic()
{
using (var database = SqlServerTestStore.CreateScratch())
@ -251,7 +257,8 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
}
}
[Fact]
[ConditionalTheory]
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
public async Task Error_page_displayed_when_exception_wrapped()
{
TestServer server = SetupTestServer<BloggingContext, WrappedExceptionMiddleware>();

View File

@ -3,7 +3,8 @@
"EntityFramework.SqlServer": "7.0.0-*",
"Microsoft.AspNet.Diagnostics.Entity": "7.0.0-*",
"Microsoft.AspNet.Diagnostics.Entity.Tests": "1.0.0",
"Microsoft.AspNet.TestHost": "1.0.0-*",
"Microsoft.AspNet.TestHost": "1.0.0-*",
"Microsoft.AspNet.Testing": "1.0.0-*",
"xunit.runner.aspnet": "2.0.0-aspnet-*"
},
"commands": {