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)
13
public class RequiresFeatureAttribute(
TestFeature
feature) : Attribute, ITraitAttribute
18
public
TestFeature
Feature { get; } = feature;
177
public static bool IsFeatureSupported(
TestFeature
feature)
180
if ((feature &
TestFeature
.SSLCertificate) ==
TestFeature
.SSLCertificate && !IsSslCertificateSupported())
184
if ((feature &
TestFeature
.Playwright) ==
TestFeature
.Playwright && !IsPlaywrightSupported())
188
if ((feature &
TestFeature
.DevCert) ==
TestFeature
.DevCert && !IsDevCertSupported())
192
if ((feature &
TestFeature
.ContainerRuntime) ==
TestFeature
.ContainerRuntime && !IsContainerRuntimeSupported())
196
if ((feature &
TestFeature
.ContainerImageBuild) ==
TestFeature
.ContainerImageBuild && !IsContainerImageBuildSupported())
200
if ((feature &
TestFeature
.Docker) ==
TestFeature
.Docker && !IsDockerSupported())
204
if ((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)
14
public static bool HasPlaywrightSupport => RequiresFeatureAttribute.IsFeatureSupported(
TestFeature
.Playwright);