From cc62bcebfc66537a47004b95e23438538e400339 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Fri, 15 Feb 2019 12:33:23 -0800 Subject: [PATCH] Skip HttpSys.Https tests on Helix Internal/#1816 (#7578) --- docs/Helix.md | 2 +- src/Servers/HttpSys/test/FunctionalTests/HttpsTests.cs | 1 + .../Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj | 1 + src/Shared/test/SkipOnHelixAttribute.cs | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/Helix.md b/docs/Helix.md index 9465d435b9..256908b8ed 100644 --- a/docs/Helix.md +++ b/docs/Helix.md @@ -48,6 +48,6 @@ This will restore, and then publish all of the test projects including some boot ## How to skip tests on helix There are two main ways to opt out of helix - Skipping the entire test project via `false` in csproj (the default value for this is IsTestProject). -- Skipping an individual test via `[SkipOnHelix]` which might require including a compile reference to: `` +- Skipping an individual test via `[SkipOnHelix]` which might require including a compile reference to: `` Make sure to file an issue for any skipped tests and include that in a comment next to either of these diff --git a/src/Servers/HttpSys/test/FunctionalTests/HttpsTests.cs b/src/Servers/HttpSys/test/FunctionalTests/HttpsTests.cs index e0a59cbf9b..a010203f9b 100644 --- a/src/Servers/HttpSys/test/FunctionalTests/HttpsTests.cs +++ b/src/Servers/HttpSys/test/FunctionalTests/HttpsTests.cs @@ -17,6 +17,7 @@ using Xunit; namespace Microsoft.AspNetCore.Server.HttpSys { + [SkipOnHelix] // https://github.com/aspnet/AspNetCore-Internal/issues/1816 public class HttpsTests { [ConditionalFact] diff --git a/src/Servers/HttpSys/test/FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj b/src/Servers/HttpSys/test/FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj index fd830d6041..0186303746 100644 --- a/src/Servers/HttpSys/test/FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj +++ b/src/Servers/HttpSys/test/FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj @@ -8,6 +8,7 @@ + diff --git a/src/Shared/test/SkipOnHelixAttribute.cs b/src/Shared/test/SkipOnHelixAttribute.cs index 144acece4e..c84b8e9097 100644 --- a/src/Shared/test/SkipOnHelixAttribute.cs +++ b/src/Shared/test/SkipOnHelixAttribute.cs @@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.Testing.xunit /// Skip test if a given environment variable is not enabled. To enable the test, set environment variable /// to "true" for the test process. /// - [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] + [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false)] public class SkipOnHelixAttribute : Attribute, ITestCondition { public bool IsMet