Skip to content

Commit faba41c

Browse files
committed
Try a different approach, since I forgot our CI does use VS
1 parent e00fe0b commit faba41c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/VSOnlyIdeFactAttribute.cs src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/ManualRunOnlyIdeFactAttribute.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
namespace Microsoft.VisualStudio.Razor.IntegrationTests;
88

99
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
10-
public class VSOnlyIdeFactAttribute : IdeFactAttribute
10+
public class ManualRunOnlyIdeFactAttribute : IdeFactAttribute
1111
{
12-
public VSOnlyIdeFactAttribute()
12+
public ManualRunOnlyIdeFactAttribute()
1313
{
14-
if (Environment.GetEnvironmentVariable("VisualStudioVersion") is null)
14+
if (Environment.GetEnvironmentVariable("CI") is not null)
1515
{
16-
Skip = "This test can only run in Visual Studio";
16+
Skip = "This test can only run manually";
1717
}
1818
}
1919
}

src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/StressTests/RCLStressTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class RCLStressTests(ITestOutputHelper testOutputHelper) : AbstractStress
1616

1717
protected override string ProjectZipFile => "Microsoft.VisualStudio.Razor.IntegrationTests.TestFiles.BlazorProjectWithRCL.zip";
1818

19-
[VSOnlyIdeFact]
19+
[ManualRunOnlyIdeFact]
2020
public async Task AddAndRemoveComponentInRCL()
2121
{
2222
await TestServices.SolutionExplorer.OpenFileAsync("RazorClassLibrary", @"Components\RCLComponent.razor", ControlledHangMitigatingCancellationToken);

src/Razor/test/Microsoft.VisualStudio.Razor.IntegrationTests/StressTests/StressTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.VisualStudio.Razor.IntegrationTests;
1212

1313
public class StressTests(ITestOutputHelper testOutputHelper) : AbstractStressTest(testOutputHelper)
1414
{
15-
[VSOnlyIdeFact]
15+
[ManualRunOnlyIdeFact]
1616
public async Task AddAndRemoveComponent()
1717
{
1818
await TestServices.SolutionExplorer.OpenFileAsync(RazorProjectConstants.BlazorProjectName, RazorProjectConstants.CounterRazorFile, ControlledHangMitigatingCancellationToken);

0 commit comments

Comments
 (0)