Added "Slow" category to several fixtures, cutting test time in half for most regression runs.

This commit is contained in:
Lars-Erik Aabech
2018-06-26 00:33:38 +02:00
parent 3a7d7e370e
commit 49e9514609
6 changed files with 6 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ using static Umbraco.Tests.Cache.DistributedCache.DistributedCacheTests;
namespace Umbraco.Tests.Integration
{
[TestFixture]
[Category("Slow")]
[UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)]
public class ContentEventsTests : TestWithSomeContentBase
{

View File

@@ -13,6 +13,7 @@ namespace Umbraco.Tests.Scheduling
{
[TestFixture]
[Timeout(30000)]
[Category("Slow")]
public class BackgroundTaskRunnerTests
{
private ILogger _logger;

View File

@@ -34,6 +34,7 @@ namespace Umbraco.Tests.Services
/// as well as configuration.
/// </summary>
[TestFixture]
[Category("Slow")]
[UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest, PublishedRepositoryEvents = true, WithApplication = true)]
public class ContentServiceTests : TestWithSomeContentBase
{

View File

@@ -19,6 +19,7 @@ using Umbraco.Tests.Testing;
namespace Umbraco.Tests.Services
{
[TestFixture]
[Category("Slow")]
[Apartment(ApartmentState.STA)]
[UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest, PublishedRepositoryEvents = true)]
public class ContentTypeServiceTests : TestWithSomeContentBase

View File

@@ -16,6 +16,7 @@ using LightInject;
namespace Umbraco.Tests.Services.Importing
{
[TestFixture]
[Category("Slow")]
[Apartment(ApartmentState.STA)]
[UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)]
public class PackageImportTests : TestWithSomeContentBase

View File

@@ -24,6 +24,7 @@ using Umbraco.Web.Security.Providers;
namespace Umbraco.Tests.Services
{
[TestFixture]
[Category("Slow")]
[Apartment(ApartmentState.STA)]
[UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest, PublishedRepositoryEvents = true, WithApplication = true)]
public class MemberServiceTests : TestWithSomeContentBase