Merge remote-tracking branch 'origin/v12/dev' into v13/dev
# Conflicts: # tests/Umbraco.Tests.Integration/CompatibilitySuppressions.xml
This commit is contained in:
12
tests/Umbraco.Tests.Common/Attributes/LongRunning.cs
Normal file
12
tests/Umbraco.Tests.Common/Attributes/LongRunning.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Umbraco.Cms.Tests.Common.Attributes;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false)]
|
||||
public class LongRunning : CategoryAttribute
|
||||
{
|
||||
public LongRunning()
|
||||
: base(TestConstants.Categories.LongRunning)
|
||||
{
|
||||
}
|
||||
}
|
||||
12
tests/Umbraco.Tests.Common/Attributes/NonCritical.cs
Normal file
12
tests/Umbraco.Tests.Common/Attributes/NonCritical.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Umbraco.Cms.Tests.Common.Attributes;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false)]
|
||||
public class NonCritical : CategoryAttribute
|
||||
{
|
||||
public NonCritical()
|
||||
: base(TestConstants.Categories.NonCritical)
|
||||
{
|
||||
}
|
||||
}
|
||||
13
tests/Umbraco.Tests.Common/TestConstants.cs
Normal file
13
tests/Umbraco.Tests.Common/TestConstants.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Umbraco.Cms.Tests.Common;
|
||||
|
||||
public static class TestConstants
|
||||
{
|
||||
/// <summary>
|
||||
/// Used for TestCategories, they are designed to be used in an exclusion filter pattern
|
||||
/// </summary>
|
||||
public static class Categories
|
||||
{
|
||||
public const string LongRunning = "LongRunning";
|
||||
public const string NonCritical = "NonCritical";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user