27 references to TestFeature
Aspire.Playground.Tests (27)
AppHostTests.cs (1)
19[RequiresFeature(TestFeature.ContainerRuntime)]
BlazorWasmHostingTests.cs (3)
16[RequiresFeature(TestFeature.ContainerRuntime)] 48[RequiresFeature(TestFeature.Playwright)] 129[RequiresFeature(TestFeature.Playwright)]
ProjectSpecificTests.cs (2)
15[RequiresFeature(TestFeature.ContainerRuntime)] 61[RequiresFeature(TestFeature.ContainerRuntime)]
tests\Aspire.TestUtilities\RequiresFeatureAttribute.cs (17)
13public class RequiresFeatureAttribute(TestFeature feature) : Attribute, ITraitAttribute 18public TestFeature Feature { get; } = feature; 177public static bool IsFeatureSupported(TestFeature feature) 180if ((feature & TestFeature.SSLCertificate) == TestFeature.SSLCertificate && !IsSslCertificateSupported()) 184if ((feature & TestFeature.Playwright) == TestFeature.Playwright && !IsPlaywrightSupported()) 188if ((feature & TestFeature.DevCert) == TestFeature.DevCert && !IsDevCertSupported()) 192if ((feature & TestFeature.ContainerRuntime) == TestFeature.ContainerRuntime && !IsContainerRuntimeSupported()) 196if ((feature & TestFeature.ContainerImageBuild) == TestFeature.ContainerImageBuild && !IsContainerImageBuildSupported()) 200if ((feature & TestFeature.Docker) == TestFeature.Docker && !IsDockerSupported()) 204if ((feature & TestFeature.Testcontainers) == TestFeature.Testcontainers && !IsTestcontainersSupported())
tests\Aspire.TestUtilities\TestcontainersPodmanConfiguration.cs (3)
28/// The <see cref="TestFeature.Testcontainers"/> capability check is the hook for that, so every 38/// <see cref="TestFeature.ContainerRuntime"/>; it is <see cref="TestFeature.Testcontainers"/> that consults
tests\Shared\Playwright\PlaywrightProvider.cs (1)
14public static bool HasPlaywrightSupport => RequiresFeatureAttribute.IsFeatureSupported(TestFeature.Playwright);